script help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
 
 
 
 
 


Looking for the perfect gift? Give the gift of Flickr!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux