Saturday, September 18, 2010

Use grep to search strings in files

GREP is a powerful tool to search in linux, as there is no good search tools in windows.

A simple example:

$ grep "some string" /home/steven/*.txt

Search all subdirectories recursively

$ grep "some string" /home/steven

-i ignore case

wanna know more things it can do just:

grep --help

No comments:

Post a Comment