Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr0962 :: LiTS 004: paste

Merge lines of files with the paste command

<< First, < Previous, , Latest >>

Hosted by Dann on 2012-04-10 is flagged as Explicit and is released under a CC-BY-SA license.
paste. 1.
The show is available on the Internet Archive at: https://archive.org/details/hpr0962

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:08:56

Linux in the Shell.

Linux In The Shell aims to explore the use of many commands a user can run in the Bash Shell. Tutorials include a write up with examples, an audio component about the write up, and a video component to demonstrate the usage of the command.
The website is https://www.linuxintheshell.com/

In the fourth in his series Dann, shows us the benefits of the paste command:

The paste command merges the lines of two or more files or a file and standard in if a second file is not specified or a "-" is used in place of the second file. Consider the following two files. The first file, test1.txt contains the following lines:

a
one
three
cat
good

The second file, test2.txt contains the following lines:

tuna
blue finch
dogs
fish
eats

The paste command can be used to paste these two files like so:

paste test1.txt test2.txt

producing the following output:

a         tuna
one     blue finch
three   dogs
cat      fish
good   eats

Each line in test1.txt has been “pasted” to the corresponding line in test2.txt.

https://www.linuxintheshell.com/2012/04/10/episode-004-paste/ for the complete shownotes, including video.


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2012-04-12 18:01:45 by computothought

Do it to it.

Applying what Dann has taught so far. https://www.instructables.com/id/Mixing-the-command-line-and-the-gui/

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?