Bash – How to enter a literal tab character in a bash shell


For example, I wanted to use the sort utility with the -t option to specify tab separators, but

sort -t "\t"

doesn't work.

Best Answer

Don't use double quotes.

sort -t $'\t'

Or I think Ctrl V inserts a Tab??


Related Question