Paste (Unix)
From Wikipedia, the free encyclopedia
- The correct title of this article is paste (Unix). The initial letter is shown capitalized due to technical restrictions.
paste is a Unix utility tool which is used to join files horizontally (parallel merging), e.g. to join two similar length files which are comma delimited. It is effectively the horizontal equivalent to the utility cat command which operates on the vertical plane of two (or more) files, i.e. by adding one file to another in order.
[edit] Example
To paste several columns of data together, enter:
paste who where when > www
This creates a file named www that contains the data from the names file in one column, the places file in another, and the dates file in a third. If the names, places, and dates file look like:
who where when Sam Detroit January 3 Dave Edgewood February 4 Sue Tampa March 19
then the www file will contain:
Sam Detroit January 3 Dave Edgewood February 4 Sue Tampa March 19
[edit] See also
Unix command line programs (more) | |||
File and file system management: | cat | cd | chmod | chown | chgrp | cp | du | df | file | fsck | ln | ls | lsof | mkdir | more | mount | mv | pwd | rm | rmdir | split | touch | tree | ||
Process management: | anacron | at | chroot | crontab | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | screen | time | timex | top | wait | ||
User Management/Environment: | env | finger | id | locale | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
Text processing: | awk | cut | diff | ex | head | iconv | join | less | more | nkf | paste | sed | sort | tail | tr | uniq | wc | xargs | ||
Shell programming: | echo | expr | printf | unset | Printing: | lp |
Communications: inetd | netstat | ping | rlogin | traceroute |
Searching: find | grep | strings |
Miscellaneous: banner | bc | cal | man | size | yes |