The command is:
find $HOME -path $HOME/$dir_name -prune -o -name "*$file_suffix" -exec cp {} $HOME/$dir_name/ \;
The variables dir_name
and file_suffix
are assigned a path to a directory and an arbitrary word earlier in the script.
I do not understand what the purpose of -path $HOME/$dir_name
is, or how it affects how the rest of the command is interpreted.