How can I copy and paste text lines across different files in a bash script? - Ask Ubuntu


from number of files, need create new file each line of text sequence of respective lines original files. so, let's have 2 files structure this:

file1:

aaaa bbbb cccc 

file2:

xxxx yyyy zzzz 

i need combine them result like:

aaaaxxxx bbbbyyyy cccczzzz 

how can bash script?

use paste command:

paste -d '' file1 file2 

by default, paste joins lines tabs, need use -d option tell use empty string joining.


Comments

Popular posts from this blog

nvidia - NV18 [GeForce4 MX 4000] driver - Ask Ubuntu

drivers - No wi-fi network after install - Ask Ubuntu