echo
printf
echo "Name:\t$value"
printf 'Name:\t%s\n' "$value"
Backslash escapes like \t and \n are not expanded by echo, and become literal backslash-t, backslash-n.
\t
\n
printf does expand these sequences, and should be used instead.
Other, non-portable methods include echo -e '\t' and echo $'\t'. ShellCheck will warn if this is used in a script with shebang #!/bin/sh.
echo -e '\t'
echo $'\t'
#!/bin/sh
If you actually wanted a literal backslash-t, use
echo "\\t"
None
There was an error while loading. Please reload this page.