Filtering Vertically

cut

cut

Print selected parts of lines from each FILE to standard output. cut can also read data from stdin (usually via a pipe).

SYNOPSIS
cut [OPTION]... [FILE]...
-d, --delimiter=DELIM

Use DELIM instead of TAB for field delimiter

-f, --fields=LIST

Select only these fields; also print any line that contains no delimiter character, unless the -s option is specified

awk

See Vertical Filtering With Awk

paste

paste

Write lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output. With no FILE, or when FILE is -, read standard input.

The paste command is sort of the opposite of cut. The cut command filters vertical data (columns) from the data and paste takes columns of data from separate files and put them together.

SYNOPSIS

paste [OPTION]... [FILE]...
-d, --delimiters=LIST

reuse characters from LIST instead of TABs

-s, --serial

paste one file at a time instead of in parallel

Table Of Contents

Previous topic

Filtering Horizontally

Next topic

Inline Filtering

This Page