9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Wolfgang Helbig <helbig@mailbox.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Replacement for find
Date: Wed, 30 Sep 2015 13:25:24 +0200	[thread overview]
Message-ID: <FEB19F43-2F54-4BA4-83E4-577068DDC199@mailbox.org> (raw)
In-Reply-To: <CALAsyW10yqkCk01xrrcKAmrf5dXebprhNm-JYrGjhmdyRSHHkQ@mail.gmail.com>

Where can I read more about the “shells quoting convention”.
What are those quoting convention? And about which shell are we
talking here. Plan 9s rc(1) or Unix shells?

I downloaded lsr.c from https://swtch.com/lsr.c, compiled it:
% 9c lsr.c
% ls
lsr.c
lsr.o

linked it:
% 9l lsr.o
% ls
a.out
lsr.c
lsr.o

and installed it:
% mv a.out $home/bin/lsr

all of this with the help of Plan 9 from User Space on an IMac. It works great. Next, I’ll write the manual page for it and I can forget du(1).

Here are some usages for it:
% ed `{lsr $PLAN9 | grep 'du\.c$'}
3101

% ed `{lsr $home/plan9os|grep 'du\.c$'}
5427

% ed `{lsr $home/plan92nd|grep 'DU\.C$'}
2308

This demonstrate nicely the bloat of du(1) over the times.

Greetings
Wolfgang




> Am 30.09.2015 um 12:55 schrieb Mark van Atten <vanattenmark@gmail.com>:
> 
> On Wed, Sep 30, 2015 at 12:07 PM, Steve Simon <steve@quintile.net> wrote:
> 
>> NB: don't use sed or awk, they don't understand the shells
>> quoting convention for filenames containing frogs.
> 
> That's a good point.
> 
> Mark.
> 




  reply	other threads:[~2015-09-30 11:25 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30  8:01 Wolfgang Helbig
2015-09-30  8:09 ` lucio
2015-09-30  8:11 ` Charles Forsyth
2015-09-30  8:23   ` hiro
2015-09-30  8:27     ` lucio
2015-09-30 10:34       ` hiro
2015-09-30  9:33     ` Wolfgang Helbig
2015-09-30  9:58       ` Aram Hăvărneanu
2015-09-30 10:41         ` Wolfgang Helbig
2015-09-30 10:45           ` hiro
2015-09-30 10:07       ` Steve Simon
2015-09-30 10:55         ` Mark van Atten
2015-09-30 11:25           ` Wolfgang Helbig [this message]
2015-09-30 13:20   ` erik quanstrom
2015-09-30 14:32     ` arnold
2015-10-01  0:06       ` sl
2015-09-30 14:57     ` Steven Stallion
2015-09-30 10:31 ` Brantley Coile
  -- strict thread matches above, loose matches on Subject: below --
2015-09-30  6:26 Wolfgang Helbig
2015-09-30  6:39 ` Alexander Kapshuk
2015-09-30  6:54 ` Mark van Atten
2015-09-30  7:39   ` hiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FEB19F43-2F54-4BA4-83E4-577068DDC199@mailbox.org \
    --to=helbig@mailbox.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).