on-internet
← Community

Echo tab characters in bash script

Stack Overflow ·

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] I get this res=[ x] # that is [<space>x]

Comments

Sign in or sign up to comment and upvote.

No comments yet.