Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #201519
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | rhkramer@gmail.com |
| Newsgroups | linux.debian.user |
| Subject | Re: An appropriate directory search tool? |
| Date | Sun, 21 Oct 2018 23:50:02 +0200 |
| Message-ID | <wLtLI-R4-1@gated-at.bofh.it> (permalink) |
| References | <wKEzv-4gD-5@gated-at.bofh.it> <wLpyp-6M2-1@gated-at.bofh.it> <wLr7c-7xg-9@gated-at.bofh.it> |
| X-Original-To | debian-user@lists.debian.org |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Sun Oct 21 21:46:48 2018 |
| Old-Return-Path | <rhkramer@gmail.com> |
| X-Amavis-Spam-Status | No, score=-7.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-oi1-x232.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-transfer-encoding:message-id; bh=y33wRxU8YyGCtLvtiqK5Ft6Kah/Hwl5GRtWz6vL2JeQ=; b=RJLGQVxj4mYAs0JVaWWSecRFJjo+TLOMhzgxlQd0QPzXk87wt161zx4AixcOEx0dsL t+x2o2hc+HHNtp/dOYhVmfg4ltkZLPanONBL1npCQn6BHkGBNb89Ffq9undCJbsWWe/T QLqQdPpDF49kNtFkuMrkMl1Z029n14om9k7MaXWeI0O45CQecaRW8c1OJaaGjJ0jzJyG wGxBceyj2wk5FyMayzoe9y+zrArmUaywgPx/bXYgh2ErmzM3hbWCdDA12v4L7beosaKY OdTPWEccsuL2SLzzGADEm5nuWdgdVTA7lSBaLeDYQsQhkmsXWI1b1wQ8GYeoOcwtRdmR FVpA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:user-agent:references :in-reply-to:mime-version:content-transfer-encoding:message-id; bh=y33wRxU8YyGCtLvtiqK5Ft6Kah/Hwl5GRtWz6vL2JeQ=; b=ow/t8CCiAxU0rhzXsx6+iI3XHRKLT+78hJD9PTfKrZaqFdSQG7QuAbUu3M27tAU6TB Wk+nOA+qkeFWMjG69dz4az5rbo7sYbjna/OyL+2UW8zpk/hf/UNCxei95iNQYc9SybX8 NI/VUFA01k30TvrbZ7gE0gc+YD6nva3Ks2h5IqrHlwjaNkX5DnNAKCdGVutvB0d31iJ9 Aw4lc0xJDQrALnW298M+bjQbyqRCVygRDd73V7sKEvUyz44xP+9asFJN2fub3iBGtRZX Nqu05UjG9C4DLIGCgvPxnVN74YLIP7CjuqV4kwJfRBDIXvfOEf4hWE5uIC/4AbwInn8i KxWg== |
| X-Gm-Message-State | ABuFfoiH9QIQHfEKzi9KqTKc8moob9X3pJJV4WJoF+3mYhPOW9lY8XY+ pYvYLLNOi9+PbxGhq2IgZyvEwfCb |
| X-Google-SMTP-Source | ACcGV62yOO9Y7/mwANAWMvzxHtKPCgCzA+7xSdzO1wciMSKRAK7RWj0TNwotO0ywXJpN8IixFIJFzg== |
| X-Received | by 2002:aca:68a7:: with SMTP id o39-v6mr5974361oik.293.1540158388488; Sun, 21 Oct 2018 14:46:28 -0700 (PDT) |
| User-Agent | KMail/1.13.7 (Linux/3.2.0-5-amd64; KDE/4.8.4; x86_64; ; ) |
| MIME-Version | 1.0 |
| Content-Type | Text/Plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/741477 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/201810211746.25475.rhkramer@gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 64 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Sun, 21 Oct 2018 17:46:25 -0400 |
| X-Original-Message-ID | <201810211746.25475.rhkramer@gmail.com> |
| X-Original-References | <977a28cc-dc86-5330-5401-ccd88aef30b0@cloud85.net> <201810211311.16925.rhkramer@gmail.com> <20181021185215.nqn2vpoqnenrnpvw@wren.corp> |
| Xref | csiph.com linux.debian.user:201519 |
Show key headers only | View raw
On Sunday, October 21, 2018 02:52:15 PM David Wright wrote: > On Sun 21 Oct 2018 at 13:11:16 (-0400), rhkramer@gmail.com wrote: > > <quote> > > rhk@s19:/rhk/ked1$ grep test - >| /tmp/a ; echo "and the output is" ; cat > > /tmp/a one > > two > > test > > one > > two > > test > > ^C > > rhk@s19:/rhk/ked1$ less /tmp/a > > rhk@s19:/rhk/ked1$ > > ^C is not the way to exit stdin; you should use ^D, like logging out. > Unfortunately ^C has also lost you the contents of /tmp/a as the > buffer wasn't flushed. (Use cat, rather than less, so we all see it.) > In addition, if there are any filenames following - (stdin), it will > also skip those. With ^D instead, those files will all be inspected > in the same way, in regular order, to see if they any matching lines. > No restarting required. Ok, here is the new test (using ^D):: <quote> rhk@s19:/rhk/ked1$ grep test - >| /tmp/a ; echo "and the output is" ; cat /tmp/a one two three test one two test and the output is test test rhk@s19:/rhk/ked1$ </quote> > > > rhk@s19:/rhk/ked1$ grep -l test - >| /tmp/a ; echo "and the output is" ; > > cat /tmp/a one > > two > > test > > and the output is > > (standard input) > > rhk@s19:/rhk/ked1$ > > But now you can see that the succesful match meant that you didn't > have to keep typing any more stdin because it was closed for you > immediately after the match. > > That's the idea of "short-circuit" operations; once a match is found > in a file, the rest of it doesn't have to be read, however long the > file is. That's a useful, but non-essential, efficiency. > > But the warning is also necessary because you have to think about the > process that's feeding stdin (when it's not you typing it in). That > process might have expected stdin to remain open and writable much > longer than it did, perhaps only closing it when *it* had finished > doing whatever. Thanks -- more to absorb ;-)
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-19 17:10 +0200
Re: An appropriate directory search tool? Roberto C. Sánchez <roberto@debian.org> - 2018-10-19 17:20 +0200
Re: An appropriate directory search tool? Roberto C. Sánchez <roberto@debian.org> - 2018-10-19 17:20 +0200
Re: An appropriate directory search tool? <tomas@tuxteam.de> - 2018-10-19 17:30 +0200
Re: An appropriate directory search tool? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-19 17:40 +0200
Re: An appropriate directory search tool? <tomas@tuxteam.de> - 2018-10-19 17:50 +0200
Re: An appropriate directory search tool? rhkramer@gmail.com - 2018-10-20 15:30 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-19 17:50 +0200
Re: An appropriate directory search tool? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-19 18:10 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-30 16:00 +0100
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-12-01 18:20 +0100
Re: An appropriate directory search tool? songbird <songbird@anthive.com> - 2018-10-20 00:40 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-20 11:40 +0200
Re: An appropriate directory search tool? <tomas@tuxteam.de> - 2018-10-20 11:50 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-20 12:30 +0200
Re: An appropriate directory search tool? Joe <joe@jretrading.com> - 2018-10-20 13:40 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-20 14:30 +0200
Re: An appropriate directory search tool? Brian <ad44@cityscape.co.uk> - 2018-10-20 21:10 +0200
Re: An appropriate directory search tool? Håkon Alstadheim <hakon@alstadheim.priv.no> - 2018-10-21 00:00 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-21 12:10 +0200
Re: An appropriate directory search tool? Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2018-10-21 11:00 +0200
Re: An appropriate directory search tool? <tomas@tuxteam.de> - 2018-10-21 11:20 +0200
Re: An appropriate directory search tool? Roberto C. Sánchez <roberto@debian.org> - 2018-10-20 14:10 +0200
Re: An appropriate directory search tool? John Crawley <john@bunsenlabs.org> - 2018-10-21 03:20 +0200
Re: An appropriate directory search tool? mick crane <mick.crane@gmail.com> - 2018-10-21 07:30 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-21 12:30 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-21 15:50 +0200
Re: An appropriate directory search tool? rhkramer@gmail.com - 2018-10-21 16:40 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-21 17:30 +0200
Re: An appropriate directory search tool? rhkramer@gmail.com - 2018-10-21 17:50 +0200
Re: An appropriate directory search tool? Curt <curty@free.fr> - 2018-10-21 18:40 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-21 18:40 +0200
Re: An appropriate directory search tool? rhkramer@gmail.com - 2018-10-21 19:20 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-21 21:00 +0200
Re: An appropriate directory search tool? rhkramer@gmail.com - 2018-10-21 23:50 +0200
Re: An appropriate directory search tool? John Crawley <john@bunsenlabs.org> - 2018-10-22 03:20 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-22 17:30 +0200
Re: An appropriate directory search tool? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-22 15:20 +0200
Re: An appropriate directory search tool? David Wright <deblis@lionunicorn.co.uk> - 2018-10-22 17:30 +0200
Re: An appropriate directory search tool? Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-22 17:50 +0200
Re: An appropriate directory search tool? Curt <curty@free.fr> - 2018-10-21 12:00 +0200
Re: An appropriate directory search tool? Joe <joe@jretrading.com> - 2018-10-20 13:30 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-20 14:30 +0200
Re: An appropriate directory search tool? Étienne Mollier <etienne.mollier@mailoo.org> - 2018-10-20 12:30 +0200
Re: An appropriate directory search tool? Richard Owlett <rowlett@cloud85.net> - 2018-10-20 14:40 +0200
Re: An appropriate directory search tool? Dan Purgert <dan@djph.net> - 2018-10-20 15:20 +0200
Re: An appropriate directory search tool? rhkramer@gmail.com - 2018-10-20 15:30 +0200
csiph-web