Sign in to follow this  
Followers 0

HPR - HPR0962: LITS: Episode 004 - paste

1 post in this topic

In the fourth in his series Dann, shows us the benifits 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:aonethreecatgoodThe second file, test2.txt contains the following lines:tunablue finchdogsfisheatsThe paste command can be used to paste these two files like so:paste test1.txt test2.txtproducing the following output:a         tunaone     blue finchthree   dogscat      fishgood   eatsEach line in test1.txt has been “pasted” to the corresponding line in test2.txt. for the complete shownotes, including video.

Go to this episode


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0