sed help

chloe K chloekcy2000 at yahoo.ca
Wed Jun 17 18:22:10 UTC 2009


Hi 
 
 
I have a file. list.txt (two columns)
 
column1    column2
name        address
 
 
I need to put in the letter file letter.txt eg:
 
Dear: Chloe
Address: CA
 
Can I use this 
 
for i `cat list.txt` | sed 's/Chloe/$i.1; /CA/$i.2/g' $i.letter.txt
 
Thank you for your help



      __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/


More information about the freebsd-questions mailing list