We can also select a text from each line of single/multiple files using the cut
command. The cut
command allows us to select a column based on delimiters. By default, TAB
is used as delimiter. We can also select a portion of the text in a line by specifying the characters or range. The syntax is as follows:
cut OPTION [FILE …]
The cut
command works on the single and multiple files. By default, the output is printed on stdout
.
The options for the cut
command are explained in the following table: