Score:2

option delimiter in cut

in flag

I want to know if it is possible with the cut option to indicate the delimiter with a line break "\n" or "\t".

Ex: cut -f 1 -d "\t". This line gives me error.

Score:4
in flag

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.

María José avatar
in flag
thank you @pLumo, I had read the command help but it was not very clear to me
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.