I would like to search for lines that contain "uploaded" but do not contain "09"
Is there a way to do this with grep?
(CentOS 5.6 if it matters).
|
feedback
|
|
I usually chain greps to do this.
| |||
|
feedback
|
|
You can use the -v option to grep to invert the match so
will do what you want. This finds the lines that contain uploaded which are passed piped into a grep command to ignore lines with 09 in them. | |||
|
feedback
|
|
This isn't using Use this command to do it:
Just one single command (not two). | |||
|
feedback
|
|
Try simply:
Example:
| |||
|
feedback
|