Tuesday, September 23, 2008

Searching Inside Of Files Under Linux

Here's how to search inside of files with pretty much any *nix or Windows machine running Cygwin:
grep -I -R "192.168.1.1" /etc/* | less

Want to look inside of ZIP or JAR files?
for i in `ls *.zip`; do echo "$i"; zipgrep textToSearchFor "$i" '*' ; done

No comments:

Post a Comment

AddThis

Bookmark and Share