I would like to find certain files on my external disc and delete those. I created following script (to test I only use ls $i to check the output)
for i in `find /media/My\ Book/ -name "OP_CACHE.IDX" -print`;
do ls $i;
done
The problem is, that the find-command returns just strings where the whitespaces (e.g. "My Book") are not encoded (like i do in /media/My\ Book) and hence I get errors that the folders cannot be found.
How can I solve this problem with the whitespaces? Is there a flag for find, or something?
regards Marc
something
is a known bash pitfall. mywiki.wooledge.org/BashPitfalls