From: dave.l@mac.com
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] rows to cols?
Date: Sat, 14 Nov 2009 11:27:29 +0000 [thread overview]
Message-ID: <A485B340-4816-427A-A85A-7803C552A140@mac.com> (raw)
In-Reply-To: <ebdfcf288f3ec91063fd3c0e59ae2983@hamnavoe.com>
> It's the sort of thing I used to give as an exercise to students.
Wish I'd been in your class.
> Explicit looping looks so strenuous.
I know: I kept thinking "map ... join": too much perl.
> To make the tr|pr method more general, you can count columns first
> with
But that's multi-pass:-).
You could of course, use one pass of wc to count the words and lines,
then divide words by lines to get cols:-).
There are too many mad genius coders on this list.
Next: count the number of angels dancing on the head of a pin using an
acid function.
Can we talk about plan9 now, please?
D
next prev parent reply other threads:[~2009-11-14 11:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 7:39 Peter A. Cejchan
2009-11-13 8:44 ` Richard Miller
2009-11-13 9:36 ` Tharaneedharan Vilwanathan
2009-11-13 23:53 ` dave.l
2009-11-14 9:43 ` Richard Miller
2009-11-14 11:27 ` dave.l [this message]
2009-11-14 4:43 ` Lyndon Nerenberg (VE6BBM/VE7TFX)
[not found] <<372549f4a1e93be164e3f5016203c1c3@yyc.orthanc.ca>
2009-11-14 15:11 ` erik quanstrom
2009-11-14 23:23 ` Lyndon Nerenberg (VE6BBM/VE7TFX)
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=A485B340-4816-427A-A85A-7803C552A140@mac.com \
--to=dave.l@mac.com \
--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).