On Mon, 2003-01-13 at 05:45, Jianping Zhu wrote:
> Thanks.
> but a little confused by your advice
> can u give more detail?

Use sed, as was advised by Ric Tibbetts.  That is what it's made for. 
Forget anything else.

sed 's/abdfggg/opsmsdd/g' originalfile.txt > newfile.txt


> Thanks
> 
> On Mon, 13 Jan 2003, Rick Carroll wrote:
> 
> > Use back-ticks ``  (like single quotes in the opposite direction) around your 
>command.
> > Example MYVAR=`grep foo bar`
> > 
> > This redirects the standard out of a command into a variable.
> > 
> > 
> > Rick
> > 
> >  -----Original Message-----
> > From:       Jianping Zhu [mailto:[EMAIL PROTECTED]] 
> > Sent:       Monday, January 13, 2003 8:22 AM
> > To: [EMAIL PROTECTED]
> > Subject:    how to substutue string in a text file
> > 
> > 
> >  how to substutue string in a text file by using "gerp" or "find"?
> > 
> > I have a text file, lof of "abdfggg" in that text file, i need to change
> > it to "opsmsdd", is there a simple way to do that?
> > 
> > Thanks 
> > 
> > 
> > --------------------------------
> > Jianping Zhu
> > Department of Computer Science
> > Univerity of Georgia 
> > Athens, GA 30602
> > Tel 706 5423900
> > --------------------------------
> > 
> > 
> > 
> > -- 
> > 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
> > 
> 
> 
> --------------------------------
> Jianping Zhu
> Department of Computer Science
> Univerity of Georgia 
> Athens, GA 30602
> Tel 706 5423900
> --------------------------------
-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308



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

Reply via email to