<<< Date Index >>>     <<< Thread Index >>>

Re: few questions



I'm not a fan of spaces in file names, but they're usually not that big
of an obstacle.

find . -type f -print0 | xargs -0 grep something

-James

On Wed, Jul 07, 2004 at 10:57:18AM -0700, Gary Johnson wrote:
> On 2004-07-08, Joshua Crawford <mortarn_lists@xxxxxxxxxxxx> wrote:
> > * Ionel Mugurel Ciobica <tgakic@xxxxxxxxxxx> [2004-07-07 16:27 +0200]:
> 
> > > 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
> 
> Gary
> 
> -- 
> Gary Johnson                               | Agilent Technologies
> garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
> http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA