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
You can use this:
list=$(find /home/user/Desktop -name '*.pdf' -o -name '*.txt' -o -name '*.bmp')
Besides, you might want to use -iname instead of -name to catch files with ".PDF" (upper-case) extension as well.
-iname
-name