Saturday, March 13, 2010

linux find command - to find file with some content

find files with password under folder /opt/activemq

sudo find /opt/activemq/ -exec grep -l  password {} \;


sudo find /opt/SWS_4/ -exec grep -l "sigTypeList" {} \;


find .  -name "*.log" | xargs grep "localhost post"


No comments:

Post a Comment