--------
The command find . -name "*${var1}" | xargs -I{} cp {} ./Delete/ is not ececuting
But when I run it on shell $ find . -name "*${var1}" | xargs -I{} cp {} ./Delete/ it executes.
The same command fails to execute when it is inside the script but executes when used in command prompt.
I am concerned that the directory "Delete" appears to be directly under the directory where the "find" starts.
The first time we run the files matching the criteria are copied to the sundirectory. The second time we run we try to copy the files in "Delete" to themselves.
There should be error messages like "are identical" from this script.