On Wed, 13 Sep 2000, Chris S wrote:

> what if i have other strings in a file other than "NOT NULL" that i want to 
> get rid of?  can i still get away with one command or do i have to use a 
> separate command for each string?
> in my file i want to get rid of all lines beginning with:
> ;
> blank space
> .com
> <all characters>.ROOT-
> <all characters>.GTLD-
> 
> thanks for any advice.

time for you to learn "sed".  as for the above, you can use a compound
sed script:

sed '
        /^;/d
        /^ /d
        /^.com/d
        ' filename

etc etc ...

this generates the new file on stdout, so you have to redirect that output
to a new file.  more than this, it's time for you to buy the book.

rday

-- 
"This is Microsoft technical support.  How may I misinform you?"





_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to