Solved

Bash: the tab key and auto-completion

Posted on 2004-04-20
3
410 Views
Last Modified: 2013-12-26
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.
0
Comment
Question by:jcoman777
3 Comments
 
LVL 7

Expert Comment

by:leflon
ID: 10871790
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
0
 
LVL 3

Accepted Solution

by:
dtkerns earned 125 total points
ID: 10872292
preceed your tab with a ctrl-V
0
 
LVL 1

Author Comment

by:jcoman777
ID: 10873245
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!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now