Live Chat!

Aligning contents of several files into columns

* * * * ½ 2 votos

November 6th, 2006 durian Posted in Text Manipulation, paste | Hits: 2759 |

Let’s say you have 2 files with the following contents respectively:

File A:

a
b
c

File B:

1
2
3

You can join the contents of these 2 files into 2 properly aligned columns with this command:

paste A B

The output of the command will be as such:

a             1
b             2
c             3

The paste command is not limited to 2 files only.

Leave a Reply