Iterate over a list of files with spaces
Looping through files with spaces in the names?
Why is looping over find’s output bad practice?
How to get the list of files in a directory in a shell script?
Bash Shell Loop Over Set of Files
find . -maxdepth 1 -iname "*.pdf" | sed "s|^\./||" | while read f do echo $f done