Linux Shell Scripting Tutorial (LSST) v1.05r3
Prev
Chapter 5: Essential Utilities for Power User
Next

Putting lines together using paste utility

Now enter following command at shell prompt
$ paste sname smark
11    Vivek      11    67
12    Renuka   12    55
13    Prakash 13    96
14    Ashish   14     36
15    Rani      15     67

Paste utility join textual information together. To clear your idea try following command at shell prompt:

$ paste /tmp/sn.tmp.$$ /tmp/sm.tmp.$$
Vivek      67
Renuka    55
Prakash   96
Ashish     36
Rani        67

Paste utility is useful to put textual information together located in various files.

General Syntax of paste utility:
Syntax:
paste {file1} {file2}

Use of paste utility:
Putting lines together.

Can you note down basic difference between cut and paste utility?


Prev
Home
Next
Selecting portion of a file using cut utility
Up
The join utility