Hi!
I'm working on a simple script that passes a filename stored in a file (each filename is stored on a seperate line), as an argument to a program.
It uses a for loop.
Code:
for i in $( cat ~/.list ); do
program $i
done
I have a few files that contain spaces, like;
aaaaa\ bbb.jpg
The problem is, that 'for' takes that as two names, thus the program won't work on files with spaces.
Now my question;
How can I make it see a filename with spaces in as one name?
Thanks!
RefriedBean