Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

How can I merge files on a line by line basis?

$
0
0

cat file1

foo
ice
two

cat file2

bar
cream
hundred

Desired output:

foobar
icecream
twohundred

file1 and file2 will always have the same amount of lines in my scenario, in case that makes things easier.


Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>