Adrian Snyman on Thu, 1 Mar 2001 11:40:18 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: GLUG: Is this possible?


On Thu, 1 Mar 2001 pierre@xxxxxxxxxx wrote:

> Morning All,
>
> Is there a simple way to do the following?
>
>
> grep string1 myfile | grep string2 | <delete that line from the file>
>


Well, using grep -v <string> excludes the string you specify ...

So maybe just pipe the result to another file ??


 -----------------------------------------------------------------
|    .--.    Adrian Snyman - Datrix Solutions                     |
|   |o_o |   mailto:adriansREMOVE@xxxxxxxxxxxx                    |
|   |:_/ |   Tel: +27 11 888-1869                                 |
|  //   \ \  Cell: +27 82 600-1211                                |
| (|     | )                                                      |
|/'\_   _/`\ Umm ... I'm done .. you CAN stop reading now ..      |
|\___)=(___/ Really .. That's it ..                               |
 -----------------------------------------------------------------