grep on all the files in a directory

grep -r -i PATTERN /usr/include 2>err.out

'-i' means ignore case.
'-r' means recursive search.
'2>err.out' means to redirect stderr to err.out at local directory since grep will follow symbolic links.

Previous List Word Occurrence for A Given Document Next Upload Files to SD Card in Android Emulator

Leave a Reply

You must be logged in to post a comment.