본문 바로가기
Utils & Infra & Tool/Shell

jar 안에서 특정 클래스 찾는 Shell (findClass)

by 무대포 개발자 2020. 7. 10.
728x90
반응형

findClass

  • jar 안에 특정 class 찾는 shell
  • 주의사항 : jar 는 환경 변수를 잡아줘서 아래 처럼 쓰거나 full path 를 써줘야 함.
  • 사용법 : sh findClass.sh Auth
    • Auth 클래스를 찾음.
      find . -type f -name '*.jar' | while read LINE; do echo $LINE; jar tvf $LINE | grep $1; done;

댓글