🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #426

Re: The road not taken

#426
From: Janis Papanagnou
Date: Fri, 27 Nov 2026 22:40
30 lines
2616 bytes
On 2026-11-27 22:42, Dan Cross wrote:
> 
> Years ago, on Plan 9 (which does not have a `find` command), I
> had the epiphany that `find` was really just a series of filters
> with one addition: an `or` operator.  I wrote something called,
> `sor`, for "stream or", that took a series of "tests" as command
> line arguments and applied each in turn to a series of strings
> it read from stdin; it was assumed that each string named a
> file, and the tests would probe characteristics of those files.
> If any test succeeded, it emitted the string, otherwise it
> didn't.
> 
> I wrote another little program called `walk` that just generated
> a list of file names rooted at some set of directories (I think
> I added a `-d` option to limit depth).  Between `walk`, `sor`,
> the shell, and the usual complement of unix-y filters, I could
> do pretty much whatever `find` could do.
> 
> It wasn't super fast, but it was a fun little exercise.

The advantage of Unix philosophy to comparably simply build ones
own tools. :-)

Have you noticed (and probably tried?) the 'tw' ("tree-walk") tool
from AT&T's AST package? - I'd be interested to hear from users of
'tw' what they think about it from their practical experience with
it.

Janis
Technical Details
Message-ID: <11ed0s1$1c0gl$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <slrn11gh1gh.eig.naddy@lorvorc.mips.inka.de> <slrn11ghiso.klm.naddy@lorvorc.mips.inka.de> <11eajar$16iu7$1@dont-email.me> <slrn11gitnk.13qg.naddy@lorvorc.mips.inka.de> <11ectfu$9cv$1@reader2.panix.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.unix.shell
Subject: Re: The road not taken
Date: Fri, 27 Nov 2026 23:40:01 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <11ed0s1$1c0gl$1@dont-email.me>
References: <slrn11gh1gh.eig.naddy@lorvorc.mips.inka.de>
 <slrn11ghiso.klm.naddy@lorvorc.mips.inka.de> <11eajar$16iu7$1@dont-email.me>
 <slrn11gitnk.13qg.naddy@lorvorc.mips.inka.de>
 <11ectfu$9cv$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Nov 2026 22:40:02 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1442325"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18n1iDrcwLFWoxxkubh838h"; posting-host="938d14fc3c258280eeae19b919cfe99e"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:N0chE1nodhu+KmB8A4TQUx1+7Lc= sha256:zUyesNtqCN9ELaiFiyIu9kATrGvUw2EbrUI5YvQAOVE=
	sha1:DPLzG+2bdoM7cpQoW0ohHTnqdHc= sha256:a5AWbeZFDbhBBTNtrQHVLJmZXDss31SPYRcZW5pLNHg=
In-Reply-To: <11ectfu$9cv$1@reader2.panix.com>
Content-Language: en-US