linux - merging contents from two files in one file using shell script -


file :

1 3 5 7 

file b:

2 4 6 8 

is possible use file , file b input in shell script , output file c contents follows:

1 2 3 4 5 6 7 8   

use paste interleave lines in exact order they're found:

paste -d '\n' filea fileb 

or use sort combine , sort files:

sort filea fileb 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -