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

[aclug-L] Re: 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] Re: sed or awk??? or better way to do.
From: Jesse Kaufman <glandix@xxxxxxxxxxx>
Date: Fri, 3 Nov 2000 13:29:04 -0600 (EST)
Reply-to: discussion@xxxxxxxxx

in my opinion, perl would be fairly simple to do that with...  i'd have to
screw around w/ it a bit, but it shouldn't be too hard...  mostly regular
expression replacements...

--
Jesse Kaufman                           |       WebSurf Internet Access
Administration / Web Development        |       www.websurf.net
glandix@xxxxxxxxxxx                     |       Ph: 316.945.7873
www.linuxfreak.com/~glandix             |       Fax: 316.946.9944
--

<<< Vim is a REAL man's text editor.  I don't know why anyone else would
    even bother with sissy programs like emacs, or even worse...  pico!  >>>


On Fri, 3 Nov 2000, Maverick Ieong wrote:

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


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