Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Eric Blake Newsgroups: gnu.utils.bug Subject: Re: Just want to exclude lines with tabs Date: Thu, 19 May 2016 08:42:57 -0600 Organization: Red Hat, Inc. Lines: 50 Approved: bug-gnu-utils@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="B81wpENTf5MwkPf4peGVHCK4PimHbpoq9" X-Trace: usenet.stanford.edu 1463668986 23892 208.118.235.17 (19 May 2016 14:43:06 GMT) X-Complaints-To: action@cs.stanford.edu To: xyz2041 , bug-gnu-utils@gnu.org Envelope-to: bug-gnu-utils@gnu.org Openpgp: url=http://people.redhat.com/eblake/eblake.gpg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 19 May 2016 14:42:58 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 X-BeenThere: bug-gnu-utils@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU utilities List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.utils.bug:2207 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --B81wpENTf5MwkPf4peGVHCK4PimHbpoq9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/18/2016 09:17 PM, xyz2041 wrote: > Hi, >=20 > I just want to exclude lines that have tabs on them. >=20 > I've tried all of these, but none work. >=20 > What am I missing? Grep doesn't interpret \t as a valid escape sequence. This works: $ printf 'a a\nb\tb\nc c\n' | grep -v $'\t' a a c c if your shell is new enough to have $'' support; otherwise, type a literal tab in your shell window (often by 'ctrl-v tab' or 'ctrl-v ctrl-i'), and be sure you properly quote it. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --B81wpENTf5MwkPf4peGVHCK4PimHbpoq9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXPdDxAAoJEKeha0olJ0Nq4loH/2Da1jCH3Dp4bxKGxJVcIc4+ d6OuoUUhWWxLbBT9W7ILzHan0/B+YrHlfj4Ac1tyJFNuyGmVme7WaMrKEUMQ3PYQ jRJvRhawH/qK4oQTRoZj6xnp4+JkHh8BoRynMWz8L1qXpWeaifxY24xDZ3u0mvjA 5EAoLsayivjtEcJ4YrYhNSBJeKHrl25B0GVGdRQxTAAkRma3KGGL91QYm1Tq9qds M5rnm5gTo0h0okhz4qoXUerMVl8bnYYjVG/aComqhOLyrmJLL4ds7IbPuDEU5bb2 BT3p5dfFWkr7DzTc+LiaAAq28xNhFTbh1DETuy5mdmS1a1A8o6Uy2cdQ9ATfk5Y= =skta -----END PGP SIGNATURE----- --B81wpENTf5MwkPf4peGVHCK4PimHbpoq9--