Quote:
Originally Posted by athreyavc
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
[...]
|
Assuming the output should be:
Code:
ram 25y BAL 100
sham 24y NY 200
Code:
paste -d" " file1 file2
otherwise (if the output should be really as shown):
Code:
printf "$(read a b c<file1;printf "%s" "$a $b $c") %s\n" $(<file2)