[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Just want to exclude lines with tabs
From: |
John Cowan |
Subject: |
Re: Just want to exclude lines with tabs |
Date: |
Thu, 19 May 2016 10:56:41 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
xyz2041 scripsit:
> What am I missing?
That grep and similar Posix utilities do not understand \t. Instead,
use \011 (the octal code for tab):
$ grep -v '\011' o.csv > o-out.csv
You need to put the \011 in single quotes, otherwise the shell will interpret
the \0 sequence as equivalent to simple 0.
--
John Cowan http://www.ccil.org/~cowan address@hidden
But no living man am I! You look upon a woman. Eowyn I am, Eomund's daughter.
You stand between me and my lord and kin. Begone, if you be not deathless.
For living or dark undead, I will smite you if you touch him.