merge lines into a file
-
merge lines of file by using pasteComputer/linux 2013. 3. 19. 19:53
Linux is always so powerful to do something, in my life. And it makes my life ease...Sometimes, I need a special tool to merge two or multiple files into a file. So here is the neat solution for that. $ more {1,2}.dat :::::::::::::: 1.dat :::::::::::::: 1 2 3 :::::::::::::: 2.dat :::::::::::::: A B C $ paste {1,2}.dat 1 A 2 B 3 C $ paste -d" " {1,2}.dat 1 A 2 B 3 C $ paste -d"," {1,2}.dat 1,A 2,..