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

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

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
Encryption files with GPG without user intervention (batch)
Secure shell (ssh) connection without password
htop: new generation Linux processes viewer



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


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


  1. No Comments

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem Nosulchik (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 ››