Re: Gnu findutils

[prev] [thread] [next] [lurker] [Date index for 2004/03/04]

From: Philip Newton
Subject: Re: Gnu findutils
Date: 14:11 on 04 Mar 2004
On 4 Mar 2004 at 13:09, Jonathan Stowe wrote:

> So how long has samba been around, how long has Windows had long
> filenames and encourage people to create files with spaces in (yeah,
> yeah I know but that is a totally different piece of hate.)

Before Windows 95 and long filenames were around, it was the Macintosh 
people creating filenames with spaces...

(I remember guidelines for some software which included something along 
the lines of "no steenking spaces in filenames", though I can't 
remember offhand what it was, and that bit of advice was followed by 
something like "Macintosh users, laugh all you want".)

> Then why do the stupid poxy findutils not make any allowance for this

Hysterical raisins?

> [jonathan@orpheus Documentation]$ find . -type d | xargs chmod go+rx
> chmod: failed to get attributes of `./Database': No such file or
> directory
> chmod: failed to get attributes of `Schema': No such file or directory
> chmod: failed to get attributes of `./Document': No such file or
> directory
> chmod: failed to get attributes of `System': No such file or directory
> chmod: failed to get attributes of `./ID': No such file or directory
> chmod: failed to get attributes of `generation': No such file or
> directory
> chmod: failed to get attributes of `./SCP': No such file or directory
> chmod: failed to get attributes of `SDK': No such file or directory
> 
> and so forth.   Oh yes I know there are ways to get around this.

With GNU fileutils, yes (-print0 and -0 go a long way). With the 
standard 'find' and 'xargs', it becomes more Interesting, in the 
Chinese sense of the word. Yay.

Philip
-- 
Philip Newton <pnewton@xxx.xx>

Generated at 14:02 on 01 Jul 2004 by mariachi 0.52