I have a directory which contains multiple files with spaces in their names. I want to find a pattern in the name and those file will be moved to some other directory. Now t
No need to use a loop:
find . -maxdepth 1 -name "*$pattern*xlsx" -type f -exec mv {} $destination +