Complete.Org: Mailing Lists: Archives: discussion: November 2000:
[aclug-L] sed or awk??? or better way to do.
Home

[aclug-L] sed or awk??? or better way to do.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ACLUG_DISCUSSION <discussion@xxxxxxxxx>
Subject: [aclug-L] sed or awk??? or better way to do.
From: Maverick Ieong <mluvw47@xxxxxxxxx>
Date: Fri, 3 Nov 2000 09:38:32 -0800 (PST)
Reply-to: discussion@xxxxxxxxx

Hi, all
   I have a file call table.txt and inside it contain:
//this is the table.txt 
old new
bad good
oldstuff newstuff
... ...

I would like to read in a text file. for example,
//this is a text.file
I am old, and I am bad, badly,
old stuff and bad stuff
...................
..............


and replace all the occurence the word accordingly to
on the same text file, like
//this is a text.file
I am new, and I am good, badly,
new stuff and good stuff
.....................
...............


note, I only want to replace the exactly accordingly,
for example, the word "badly" didn't replace by
"goodly".


Is that a simple way to do it? 
Thanks,

Regards,
Mav


=====
~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~

__________________________________________________
Do You Yahoo!?
From homework help to love advice, Yahoo! Experts has your answer.
http://experts.yahoo.com/

-- 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]