cut

Cut and keep columns or fields of output

Usage: cut options [list-of-files]

Standard Input: Used only if no list-of-files is given

Standard Output: Used to display results

Useful options:

-c5-16,42- means specify columns to keep in output.

-dX means set char X as the field delimiter.

-fn means cut and keep field n.

Get Practical UNIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.