Linux shell cut command Detailed

For more information, please refer to: blog Horse Park Jinlong https://www.cnblogs.com/f-ck-need-u/p/7521357.html

cut command line dividing the specified delimiters into columns, its weakness is hard to deal with the case where a plurality of separators repeated, thus often combined tr compression feature.

Common parameters -d -f

-b: Filter bytes;
-n: and "-b" option conjunction, that is prohibited to operate the byte divided;
-C: Filter by character;
-f: Filter Press field;
-d: Specifies the field separator the default field when not writing -d delimiter is "TAB"; and therefore only "-f" option is used with.
-s: print lines that do not prevent delimiters;
--complement: make up the selected byte, character or field (or reverse is selected by means complement);
--output-DELIMITER: Specifies the output delimiter; The default delimiter input.

Guess you like

Origin www.cnblogs.com/faberbeta/p/linux-shell004.html