Search folder in jar file example:
find folder -name ‘*.jar’ -o -name ‘*.war’ -o -name ‘*.ear’ -type f | xargs -i bash -c “java path -tvf {}| tr / . | grep searched data && echo {}”

find /opt/WebSphere60/PortalServer/ -name ‘*.jar’ -o -name ‘*.war’ -o -name ‘*.ear’ -type f | xargs -i bash -c “/opt/WebSphere60/AppServer/java/bin/jar -tvf {}| tr / . | grep EDataObjectHbtrImpl$EDataObjectExternalizable && echo {}”

Search a word in gzip files without extract example :
zcat compressed folder | grep -i searched data | wc -l
zcat SystemOut.log.gz | grep -i Enes | wc -l

Yorum yapın?