delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

what i want instead of givig  me that has psit & m3 , I want to get all the entries that has psit and   do not have m7, how can I do that?
Thanks


Hi
I have the following command
Code:
  1. grep psit properties.calcp | grep m3
Copy Code
which look for  'psit' and then look for m3 and return the result
what i want instead of givig  me that has psit & m3 , I want to get all the entries that has psit and   do not have m7, how can I do that?
Thanks

TOP


Originally Posted by man grep
-v, --invert-match
              Invert the sense of matching, to select non-matching lines.
So,
Code:
  1. grep psit properties.calcp | grep -v m7
Copy Code

TOP


Originally Posted by ptr2void
So,
Code:
  1. grep psit properties.calcp | grep -v m7
Copy Code
thanks a lot



what i want instead of givig  me that has psit & m3 , I want to get all the entries that has psit and   do not have m7, how can I do that?
Thanks

TOP

Back Forum