linux - joining text file with cat and bash -


so, have 2 text file containing

title1 title2 

stored in title.txt

and

data1 data2 

stored in data.txt

and i'd join cat, gonna this

title1 | data1 title2 | data2 

but, regular cat title.txt data.txt > out.txt turns out.txt file into

title1 title2 data1 data2 

i need on using cat file can this:

title1 | data1 title2 | data2 

any answer appreciated

thanks

try saying:

paste -d'|' title.txt data.txt 

for input, should return:

title1|data1 title2|data2 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -