Repeated delimiters are interpreted as empty fields
suggest change$ cut -d, -f1,3 <<<"a,,b,c,d,e"
a,b
is rather obvious, but with space-delimited strings it might be less obvious to some
$ cut -d ' ' -f1,3 <<<"a b c d e"
a b
cut
cannot be used to parse arguments as the shell and other programs do.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents