[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to handle whitespace in filenames ???



Ken Irving wrote:
> 
> On Wed, Dec 19, 2001 at 12:26:05PM -0600, Michael D. Schleif wrote:
> >
> > More and more, *nix developers are following the dark path of using
> > whitespace in directory and filenames -- something which I've always
> > detested, from an sa standpoint ;<
> >
> > For example, on my upgraded potato box I may want to do something this
> > simple:
> >
> >       grep pump `find /etc/ -type f`
> >
> > ...
> >
> > How do others handle this?
> 
> The -exec option under find should't care what the name looks like:
> 
>     $ find /etc/ -type f -exec -H pump {} \;

Of course, you meant this:

	find /etc/ -type f -exec grep -H pump {} \;

OK, this is workable in my example find/grep example.  I'll have to
think on this for the general case.

Thank you.

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .



Reply to: