Solved

Bash: the tab key and auto-completion

Posted on 2004-04-20
3
413 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
string initialization in java 11 117
modThree challenge 4 105
fix34  challenge 9 166
Excel file not created as expected 7 92
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 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