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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sed question!

Status
Not open for further replies.

mjuell

Programmer
Jun 26, 2003
17
NO
Can someone help me with a command for deleting lines ending with tab ?..
 
Try

sed '/<tab>$/d' infile

where <tab> is a tab character.

CaKiwi
 
hi,
do you insist on sed?
what about grep?
grep -v " $" your_file
(there has to be typed a tab in front of $)
 
CaKiwi,
I hadn't seen your sed answer when I replied.
But you are better with sed than me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top