Here is something strange.
mkdir -p "1/2 3/4" touch 1/2\ 3/4/file.jpg for f in $(find . -type f -name \*jpg); do echo "${f}"; done This returns
./1/2 3/4/file.jpg and not
./1/2 3/4/file.jpg How do I get find for preserve white spaces so the file path is correct?