Complete.Org: Mailing Lists: Archives: discussion: November 2001:
[aclug-L] dumb sed problem
Home

[aclug-L] dumb sed problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ACLUG_DISCUSSION <discussion@xxxxxxxxx>
Subject: [aclug-L] dumb sed problem
From: Maverick <mluvw47@xxxxxxxxx>
Date: Wed, 21 Nov 2001 11:30:59 -0800 (PST)
Reply-to: discussion@xxxxxxxxx

Hi, all
   I have a file
#myfile
abc abcde abc abcdefg abc abcde
abc abc abcdef abce

I want to use sed to replace the exact word "abc" to
"ijk", 
sed 's/abc/ijk/g' myfile

it replace all to the ijk, but I only want abc
like
#myfile
ijk abcde ijk abcdefg ijk abcde
ijk ijk abcdef abce

Thanks.

Mav



__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]