grep question

sossego

Retired from the forums
Not sure where to put this.

Is this the right syntax :
Code:
grep -r $FILENAME /$DIRECTORY/PATH
?
 
The G3 doesn't always show the full path if the search string is too vague.
I'm trying to find the location of LiveCD/$FILES without having to do a multitude of
Code:
ls /usr/*/{CONTINUED} |grep Live
.
 
Check the man page for grep. There's a flag to always show the filename of files that match. -h or something like that (from memory),
 
Back
Top