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 "" /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


Bookmark and Share