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

 
 
» You might also be interested in the following articles:
Manage gzip files on-the-fly (zcommands)
Print files in reverse with coreutils ‘tac’ and ‘rev’ commands
The easiest way to split and merge pdf files in Ubuntu
Linux and Unix fmt utility as a simple text formatter
Secure shell (ssh) connection without password



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

2 Responses to “Linux/Unix coreutils command ‘paste’ to merge lines of files”


  1. 1 Zumba Fitness Wii

    Exactly where maybe you have discovered the source meant for the following write-up? Great reading through I’ve subscribed to your blog feed.

  2. 2 marijuana

    Thank you for sharing superb information. Your web-site is so cool. I am impressed by the info that you have on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles.

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
TuxArena: The arena of Tux | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››