Link to home
Start Free TrialLog in
Avatar of jcoman777
jcoman777

asked on

Bash: the tab key and auto-completion

I'm trying to figure out how to type an actual tab character on the Bash command line.

Bash used TAB as they key for an auto-completion function.  

When I'm trying to write sed scripts on the command-line, I cannot get a tab character typed into the script.

I'd be willing to learn how to turn off auto-completion, but it would be better to still have auto-completion and also be able to type the tab character.

thanks.
Avatar of leflon
leflon
Flag of Germany image

Hi jcoman777,

if you need to include a TAB char in your sed statement you should use the \t escape sequence in the place of the TAB.

hth
leflon
ASKER CERTIFIED SOLUTION
Avatar of dtkerns
dtkerns

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jcoman777
jcoman777

ASKER

I don't know what version of sed I have, but \t does not work.  I found a couple sources online that warned that \t would not work.

ctrl-v then TAB does work!  thanks!