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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
ctrl-v then TAB does work! thanks!
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