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

Re: Maybe offtopic: Dealing with filenames with blanks in a script



> I've had similar problems, and I ended up doing something like this:
> # find . -type f -print0 | xargs -0 -i <command> <options> {}
> 
> The print0 argument to find uses a null character to signify the end of the 
> string, and the -0 argument to xargs tells it to look for that null, so 
> spaces are treated just like a-z.
> 

It works, I'm going to try this with the real script now. Thanks a lot!



Reply to: