Linux/Unix coreutils command ‘paste’ to merge lines of files

Unix and Linux GNU coreutils command paste can be useful to merge corresponding or subsequent lines of files. Here is simple example of it’s usage:

viper@viper-laptop:~$ cat /tmp/test

pop
pop1
pop2


viper@viper-laptop:~$ cat /tmp/test1

1
2
3
4

viper@viper-laptop:~$ paste /tmp/test /tmp/test1

pop     1
pop1    2
pop2    3
        4
SHARE:
nv-author-image

Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *