file formatting via shell scripting
Hi All ,
I have 2 files file 1 ram 25y BAL sham 24y NY file 2 100 200 I want a resultant file that should be in this format ram 25y BAL 100 ram 25y BAL 200 can this be done in shell scripting ? Please help me out Best Regatds, Athreya |
Quote:
Code:
ram 25y BAL 100 Code:
paste -d" " file1 file2 Code:
printf "$(read a b c<file1;printf "%s" "$a $b $c") %s\n" $(<file2) |
Thank you radoulov
That indeed helped a lot , I did know the option with the paste command Thanks a million Best Regards, Athreya |
All times are GMT -5. The time now is 09:26 PM. |