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

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User