scripting doubts

Patrick O'Callaghan pocallaghan at gmail.com
Tue Aug 4 17:29:22 UTC 2009


On Tue, Aug 4, 2009 at 12:53 PM,
<sam.sharpe+lists.redhat at gmail.com<sam.sharpe%2Blists.redhat at gmail.com>
> wrote:

> >On Tue, 2009-08-04 at 14:21 +0200, Arthur Meeks Meeks wrote:
> >> I found the way to do it finally.
> >>
> >> I'm now dealing with parsing the new file, as I need to look for two
> >> values, REPLICATION CLIENT and "ALL"
> >> So, if the machine has REPLICATION CLIENT is ok and if it has "GRANT
> >> ALL" is also good.
> >> So, is there a way with grep to say: grep "REPLICATION CLIENT" OR
> >> "GRANT ALL" ?
> >
> >For future reference, note that "tail -n +2" will remove the first line
> >of input.
>
> ... so will sed ;o)
>
> [sam at samlap ~]$ cat afil
> tom
> dick
> harry
> [sam at samlap ~]$ cat afil | sed -e '1d'
> dick
> harry
>
> (and so, the text processing wars began!)
>

Yes, there must be at least 153 ways to do this.

poc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20090804/b7e355cf/attachment-0001.html 


More information about the users mailing list