scsh-users
[Top] [All Lists]

Re: guaranteed processing of directory trees?

To: scsh-users@scsh.net
Subject: Re: guaranteed processing of directory trees?
From: Eric Knauel <knauel@informatik.uni-tuebingen.de>
Date: Sun, 17 Jul 2005 08:55:25 +0200
List-id: <scsh-users.list-id.scsh.net>
On Thu 14 Jul 2005 00:09, "Sam Smith" <spmskr@hotmail.com> writes:

> I can't find a standard version of the ftw thingie in ksh.
>
> I did find some snippets of code to process a directory tree, using
>
> (run/strings* (find ...))
>
> But I don't know if this guarantees the processing of all files,
> directories, symlinks, etc ..., even with spaces, quotes, weird euro
> or Asian characters, and so forth.

Sunterlib[1] contains the dir-streams package, which offers functions
for representing directories as streams of file objects and traversing
them in terms of FOLD, MAP, and FOR-EACH operations.  That might be
what you are looking for.

-Eric

Footnotes: 
[1]  <http://www.scsh.net/resources/sunterlib.html>
-- 
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)

<Prev in Thread] Current Thread [Next in Thread>