cut

cut

The command cut can be used to extract columns and other inforamtion from a textfile in different way. For me, the most common use cases are

Extract certain columns in a tab or space delimited file

THis can be done with the ‘-f’ option like this

cut -f 3 myFile

to get the third column of that file.

Leave a Reply

%d bloggers like this: