Append variable string(s) at end of each line
Thanks in advance and appreciate any inputs.
Please see the examples for better understanding of my issue
cat file1.txt | grep "1" | sed 's/$/,E1,F1,G1,E2,F2,G2/'
But if I try to do it using
cat file1.txt | grep "$holder" | sed 's/$/$string/'
1,$string ( NOT Correct)
Whereas I was hoping to get 1,E1,F1,G1,E2,F2,G2
Sorry for long post. Thanks for your time
Last edited by schaganti; 10-19-2007 at 12:40 PM.
Reason: Clarifying with example