Extracting not manipulating
suggest changeYou can only extract portions of lines, not reorder or repeat fields.
$ cut -d, -f2,1 <<<'John,Smith,USA' ## Just like -f1,2
John,Smith
$ cut -d, -f2,2 <<<'John,Smith,USA' ## Just like -f2
Smith
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents