Examples
For the following examples, is a plain-text file that contains: Mark Smith Bobby Brown Sue Miller Jenny Igotit is another plain-text file that contains: 555-1234 555-9876 555-6743 867-5309 The following command joins the two files. $ paste names.txt numbers.txt Mark Smith 555-1234 Bobby Brown 555-9876 Sue Miller 555-6743 Jenny Igotit 867-5309 When invoked with the option ( on BSD or older systems), the files are joined horizontally: $ paste --serial names.txt numbers.txt Mark Smith Bobby Brown Sue Miller Jenny Igotit 555-1234 555-9876 555-6734 867-5309 The use of the option ( on BSD or older systems) is illustrated in the following example: $ paste --delimiters . names.txt numbers.txt Mark Smith.555-1234 Bobby Brown.555-9876 Sue Miller.555-6743 Jenny Igotit.867-5309 Sum the numbers from 1 to 100: $ seq 1 100 | paste -d + -s | bc 5050 ==See also==