One Day One Cmd

Place for playing with commands…

Day33: $ paste

ODOC: bala@bala:~ /home$ paste file1 file2 > file3
paste command reads the data in specified files and stores i the new file. We can seperate the data using -d”!” instead of tab.

Eg: paste file1 file2 > file3
If the content of file1 is:
1
2
3
and file2 is:
a
b
c
d
the resulting file3 would be:
1 a
2 b
3 c
d

For more details use man paste

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: