Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

The whole world is a tuxedo and you are a pair of brown shoes. -- George Gobel


comp / comp.lang.scheme / Re: on the evolution of lisp

SubjectAuthor
o Re: on the evolution of lispHenHanna

1
Subject: Re: From JoyceUlysses.txt -- words occurring exactly once
From: Kaz Kylheku
Newsgroups: comp.lang.lisp, comp.lang.scheme
Organization: A noiseless patient Spider
Date: Thu, 30 May 2024 23:20 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.lisp,comp.lang.scheme
Subject: Re: From JoyceUlysses.txt -- words occurring exactly once
Date: Thu, 30 May 2024 23:20:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20240530161942.627@kylheku.com>
References: <v3ame4$1qf6m$5@dont-email.me>
<jwvzfs6ncq0.fsf-monnier+comp.lang.lisp@gnu.org>
Injection-Date: Fri, 31 May 2024 01:20:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="be4518a799bc3fa2f27a0cf115882681";
logging-data="2000837"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tlvOgMVDcb6/vcMwlumovD8/f6o3wWqU="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:z2cg8LeT5K4OV72kmtZ1fzOQHAo=
View all headers

On 2024-05-30, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> Given a text file of a novel (JoyceUlysses.txt) ...
>> could someone give me a pretty fast (and simple) program that'd give me
>> a list of all words occurring exactly once?
>
> tr ' .;:,?!' '\n' | sort | uniq -u

Yep, that's pretty much how Doug McIlroy famously shut down Knuth.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

1

rocksolid light 0.9.8
clearnet tor