I want to replace TABs in stdout with semicolons, by running sed from the ZSH shell.
I understand one can normally (in other shells?) use:
somecommand | sed 's/\t/;/g'
However, this doesn't work for me in ZSH-shell under FreeBSD. The \t doesn't match the tabulators. Why is this? I've also tried multiple backslashes (up to 5).
This does work:
somecommand | sed 's/[TAB]/;/g'
, where [TAB] is an actual TAB-character, inserted by entering Ctrl-V followed by the TAB button on my keyboard.