I try to search for files that may contain white spaces I try to use -print0 and set IFS here is my script
-print0
IFS
Use read -d '' -r file and set IFS only for the context of read:
read -d '' -r file
read
find people -name '*.svg' -print0 | while IFS= read -d '' -r file; do grep ' /dev/null && echo "$file" | tee -a embeded_images.txt; done
And quote your variables.