Zgrep For Files Beginner
I have a number of files:
Foo BlahhFoo I only want to be able to grep for names in a file that contain Foo and not BlahhFoo. However I am not able to pull only those files away. How can this bee done. My grep/zgrep knowledge only goes this far at this point. I'm still learning but I'm stuck on how to make my arguments more precise zgrep 'Foo' SomeFileIMade.gz > /home/user/FOOFILE |
I'm not that far ahead of you with grep.
Usually it's more of Code:
locate xy |grep bin |grep session You could also try directories such as: Code:
locate beans | grep /usr/bin |
Not really sure of what exactly you're wanting, but:
Code:
$ grep Foo file|grep -v BlahFoo Code:
$ egrep '/ Foo /' file |
Quote:
For some reason my grep brings back Both BlahhFoo and Foo. I want it to only return Foo. |
This should work as per your requirements
Code:
grep Foo file|grep -v BlahFoo |
All times are GMT -5. The time now is 11:02 PM. |