How do you type a tab in a bash here-document? November 28, 2023 by Tarik TAB="$(printf '\t')" cat > prices.txt << EOF coffee${TAB}\$1.50 tea${TAB}\$1.50 burger${TAB}\$5.00 EOF