9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: underspecified <underspecified@gmail.com>
To: 9fans@cse.psu.edu
Subject: [9fans] The freq command
Date: Sat,  6 Oct 2007 15:37:51 +0900	[thread overview]
Message-ID: <ab4cf6420710052337x1549a1c3m5d7b1d047b8c1bd9@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

Greetings,

I have been using Plan 9 in various forms for a short while, and I am very
impressed with its minimalist design -- particularly its tendency not to
implement any function that can be done by combining other functions.

At first I missed rgrep et al, but I found that alternatives like 'grep $foo
`{du $bar}' worked just as well. So I was surprised to find the program
freq: it prints histograms of the character distributions in files. I am
interested in doing things like identifying the language of a file, and
thought it might be useful in tasks like that, but I wanted to ask what
people in the p9 community use it for.

Is freq used as the basis for other statistical tasks? Is it used by any
components of the OS? My apologies if this has already been discussed. I am
not interested in learning how it works (I have the man page and source),
rather I want to know the why behind its creation.

--underspecified

[-- Attachment #2: Type: text/html, Size: 1054 bytes --]

             reply	other threads:[~2007-10-06  6:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-06  6:37 underspecified [this message]
2007-10-07 16:54 ` Rob Pike
2007-10-09  5:56   ` underspecified

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=ab4cf6420710052337x1549a1c3m5d7b1d047b8c1bd9@mail.gmail.com \
    --to=underspecified@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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).