Dave Howorth said the following on 03/09/2010 06:17 AM:
Istvan Gabor wrote:
I do know how to use for loops, I have problem with white spaces in file names. Can $i handle these files?
The most important thing is to remember to double quote filenames, like David Bolt and David Haller showed. If you forget that, the shell uses the spaces to break the name into several arguments. If you remember to quote, the shell treats the whole name as one argument.
So no, $i can't handle it, but "$i" can handle it.
All of which is documented quite clearly in the MAN page for the shell. -- An ounce of action is worth a ton of theory. - Friedrich Engels -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org