Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

typing a tab character within a shell?

Status
Not open for further replies.

inetd

Technical User
Jan 23, 2002
115
HK
How can I type a tab character in bash shell?

for example:
I want to delete all the line(s) that starting with a tab character using sed.

cat file.txt|sed '/^[tab]/d'
^^^


Thanks.
 
I tend to use [tt]echo -e \t[/tt], or pressing CTRL+V and then pressing the tab button. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top