Thanks a lot.
"sed"  works perfectly :))

----- Original Message -----
From: "Joseph V Moss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 15, 2002 3:56 AM
Subject: Re: Log filtering


> > I have a file like this
> >
> > aaaaaaaaaaaaa
> > bbbbbbbbbbbbb
> > aaaaaaaaaaaaa
> > bbbbbbbbbbbbb
> >
> > How I can filter this file, so that all the lines containing
bbbbbbbbbbbbb, were deleted.
> > Is there any way to do it ?
> > Thanks in advance.
> >
>
> There are *lots* of ways to do it.   Here are just three examples:
>
> grep -v bbbbbbbbbbbbb filename
>
> sed '/bbbbbbbbbbbbb/d' filename
>
> awk '/bbbbbbbbbbbbb/ {next} {print}' filename
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to