The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: grep question
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 10-05-2007
tim-bobby tim-bobby is offline
Registered User
 

Join Date: Oct 2007
Posts: 2
radoulov, isn't "fgrep ERROR file|fgrep -v foo "-the same as doing "grep ERROR file | grep -v foo", except it uses fgrep instead of grep? Is there some advantage for fgrep in this case?

The awk thing is pretty cool - I tried it and it works great. I'll have to look into awk more - I know nothing about it (yet!).

sanjustudy, I don't understand how grep -r "ERROR" * will do what I want. I thought "-r" was for searching directories recursively. Also, I don't see how it searches for "foo".
Reply With Quote