option delimiter in cut
Solution 1:
Unlike with e.g. tr
, you cannot pass \t
or \n
directly to cut
. You need ANSI-C quoting style.
You can use $'\n'
or $'\t'
as delimiter.
Note, that tab
is the default delimiter for cut
, so you can omit setting the delimiter.