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.


>From: rpjday <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: cat infile | translate all occurences of "NOT NULL" to ""
>Date: Mon, 11 Sep 2000 10:40:41 -0400 (EDT)
>
>On Mon, 11 Sep 2000, Dan Browning wrote:
>
> > what command do I use to substitute all occurences of a certain string 
>(say,
> > "NOT NULL") with another arbitrary string, (e.g. "")?  I've tried grep 
>and
> > tr, but can't figure it out.
>
>perl -pi -e "s/NOT NULL/bill gates is a donut/g" <filename>
>
>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

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.



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

Reply via email to