cut |
# print the first column cut -f1 data # print the first three columns cut -f1-3 data # print the first and fourth columns cut -f1,4 data # print all columns after the third cut -f4- data # print the first three columns, if '|'-separated cut -d'|' -f1-3 data # print the first five chars on each line cut -c1-5 data |
Unfortunately, there's no way to refer to "last column" without counting the columns.