[97601] in RedHat Linux List
Re: grep syntax
daemon@ATHENA.MIT.EDU (John Mayson)
Wed Nov 4 00:05:01 1998
Date: Tue, 3 Nov 1998 23:03:02 -0600 (CST)
From: John Mayson <jmayson@mindspring.com>
To: rwcanary@mail.lig.bellsouth.net
cc: redhat-list@redhat.com
In-Reply-To: <363FDCCB.265E@ohiocounty.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
ls /var/lock | grep -v ttyC[45]
---
John Mayson <jmayson@mindspring.com>
"Linux... the choice of a GNU generation"
> EXCEPTIONS="ttyC4 ttyC5"
>
> command ls /var/lock | grep tty[SC] | {filter out $EXCEPTIONS}
>
> I can filter out the exception with "grep -v ttyC4 | grep -v ttyC0", but
> I need to be able to feed it a variable that contians a list of some
> sort.
>
> thanks in advance :-)
> --
> robert
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.