not operator with grep
Greetings,
I want to display all lines from /etc/passwd file that does not start with z. How can I construct such a statement using grep. grep -e ^z /etc/passwd This command will display all lines starting with z.If I add a not operator , my work will be done. But I am not getting which null operator to use... Please suggest me the correct grep command . With thanks in Advance. |
The -v option inverts the output (i.e. outputs all input lines which do not match the pattern).
|
Thanks Mathew for a quick reply.
Quote:
|
All times are GMT -5. The time now is 04:37 AM. |