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
Post a Comment