I just start to use bash script and i need to use find command with more than one file type.
list=$(find /home/user/Desktop -name \'*.pdf\')
t
If you want to loop over what you "find", you should use this:
find . -type f -name '*.*' -print0 | while IFS= read -r -d '' file; do printf '%s\n' "$file" done
Source: https://askubuntu.com/questions/343727/filenames-with-spaces-breaking-for-loop-find-command