Search Results

Search: Posts Made By: tim-bobby
3,005
Posted By tim-bobby
radoulov, isn't "fgrep ERROR file|fgrep -v foo...
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...
3,005
Posted By tim-bobby
grep question
I wanted to search a for all lines containing ERROR but not errors that contained the word "foo" (for example). The only way I could figure out to do it was:

grep ERROR myfile.log | grep -v foo
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy