grep command

Hi,

how to search all occurance of keyword in current directory files and sub folder's files also using grep command.

thanks

DO A grep

GREP KEYWORD */* and you get the files which has all the keywords in the sub directories

Thanks Dino :))

...and probably a "parameter list too long"-error.

The correct way is to use "find", either this way:

# find <startdir> [-name "<namescheme>"] -type f -exec grep -q "<what you search for>" {} \; -print

or that way:

# find <startdir> [-name "<namescheme>"] -type f -print | xargs grep "<what you search for>"

The first way is to be preferred and will only list the filenames containing your search pattern.

bakunin