Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.utils.bug > #2207
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Eric Blake <eblake@redhat.com> |
| 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 | <mailman.157.1463668985.6543.bug-gnu-utils@gnu.org> (permalink) |
| References | <CAAY=KgOd0CYkx43xZ7WQ1SFj3mABziKEiueN6JohZvHM0rin5Q@mail.gmail.com> |
| 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 <xyz2041@gmail.com>, 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 | <CAAY=KgOd0CYkx43xZ7WQ1SFj3mABziKEiueN6JohZvHM0rin5Q@mail.gmail.com> |
| 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 <bug-gnu-utils.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-gnu-utils>, <mailto:bug-gnu-utils-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-gnu-utils/> |
| List-Post | <mailto:bug-gnu-utils@gnu.org> |
| List-Help | <mailto:bug-gnu-utils-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-gnu-utils>, <mailto:bug-gnu-utils-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.utils.bug:2207 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On 05/18/2016 09:17 PM, xyz2041 wrote: > Hi, > > I just want to exclude lines that have tabs on them. > > I've tried all of these, but none work. > > 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. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Back to gnu.utils.bug | Previous | Next | Find similar
Re: Just want to exclude lines with tabs Eric Blake <eblake@redhat.com> - 2016-05-19 08:42 -0600
csiph-web