How do I echo one or more tab characters using a bash script? When I run this code
res=\' \'x # res = \"\\t\\tx\" echo \'[\'$res\']\' # expect [\\t\\tx
you need to use -e flag for echo then you can
echo -e "\t\t x"