There is \t
option for horizontal tab in echo
wolf@linux:~$ echo hello
hello
wolf@linux:~$
wolf@linux:~$ echo -e '\thello'
hello
wolf@linux:~$
Is there any similar option in read
?
wolf@linux:~$ read -p 'hello '
hello wolf
wolf@linux:~$
wolf@linux:~$ read -p '\thello '
\thello wolf
wolf@linux:~$
Desired Output
wolf@linux:~$ read -p '\thello ' <- need something to produce something like tab or `\t` in `echo`
hello wolf
wolf@linux:~$
4
spaces? TAB stops are generally 8 columns apart in terminals. – Stéphane Chazelas Oct 15 '20 at 16:04