Lets so you are looking for the contents of ">" in your log file and you want
to dump it to a file called 'greaterthan"
Then simply
cat somefile | grep '>' >> greaterthan
Hope that helps
On Fri, 26 May 2000, JAMES VANETTEN wrote:
> is there some way I can grep my log and have anything that do
> is there some way I can grep my log and have anything that does not
> contain a certain pattern to be dumped to a new file. For example:
>
> more messages | grep 216.47.32.24 < newmessages
>
> will take all the lines WITH 216.47.32.24 in it and dump it into a new
> log. Can I do the opposite
is there some way I can grep my log and have anything that does not contain a certain
pattern to be dumped to a new file. For example:
more messages | grep 216.47.32.24 < newmessages
will take all the lines WITH 216.47.32.24 in it and dump it into a new log. Can I do
the opposite and take ever