[OT] Re: few questions
Gary Johnson <garyjohn@xxxxxxxxxxxxxxx> wrote:
>
> > > And lets face it, space in filename is a windows feature.
> >
> > This I can't agree with. I, as a Linux user, use spaces myself where
> > appropriate, and was doing so on UNIX (SunOS) years before Windows95 was
> > released.
>
> Don't you find that spaces in file names make it difficult to use a lot of
> common Unix tools? For example, this will try to execute grep on each word
> of each file name containing spaces.
>
> find . -type f | xargs grep something
While I agree that spaces in filenames is a bad idea, this /specific/ example
isn't a good illustration of it. "Spaces-in-filenames" is exactly why
find/xargs grew the -print0/-0 options (djb came up with the idea, and it's a
darned good one), and would allow the above example to work correctly.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <mutt@xxxxxxxxxxxxxxxxxxxx>
GPL'ed software available at: http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------