[ale] reg exp's

Wandered Inn esoteric at denali.atlnet.com
Thu Feb 15 11:39:23 EST 2001


I suspect that if you loose the quotes and asterisks it will work.  the
// will match any line that contains the string, so you don't need the
'*'s.


Ken Nagorski wrote:
> 
> Hi there,
> 
>         I have a little sed question, Use sed all the time to wastes blank
> lines in a file. i.e. sed /^$/d <infile >outfile, anyway I am trying to
> use sed to remove an ewtire line if I find a particular expression. like
> say I have this line,
> 
> 234     IN      PTR     reserverd.for.cust.xxx
> 
>         If I can match "reserverd.for.cust.xxx" I want to reomve the whole
> line. I tried a few things but no luck. I thoguht sed
> /"*reserverd.for.cust.xxx*"/d <file >outfile but there was no luck, Hmm,
> anyeway. thanks for your advice...
> 
> Ken
> 
> --
> I've got all the money I'll ever need if I die by 4 o'clock.
>                 -- Henny Youngman
> 
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

--
Until later: Geoffrey		esoteric at denali.atlnet.com

"Great spirits have always found violent opposition from mediocre minds.
The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his
intelligence."
- Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list