[97604] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: grep syntax

daemon@ATHENA.MIT.EDU (John Mayson)
Wed Nov 4 00:08:49 1998

Date: Tue, 3 Nov 1998 23:06:20 -0600 (CST)
From: John Mayson <jmayson@mindspring.com>
To: redhat-list@redhat.com
cc: rwcanary@mail.lig.bellsouth.net
In-Reply-To: <Pine.LNX.3.96.981103230214.498B-100000@ms403941>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Whoops, I blew that one..

ls /var/lock | grep tty[SC] | grep -v ttyC[45]

---
John Mayson <jmayson@mindspring.com>
"Linux... the choice of a GNU generation"


On Tue, 3 Nov 1998, John Mayson wrote:

> 
> 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.
> 


-- 
  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.


home help back first fref pref prev next nref lref last post