I have a folder in which there are a few files:
a b.jpg
c d.jpg
basically, I want to list the files and carry out some operations on them, however I failed to do by:
for i in $( ls $folder ); do echo $i; done
each line of output is a part of a file name rather than the entire one:
a
b.jpg
c
d.jpg
How can I avoid this in Bash,
Thanks,
or: