I am writing an sh file I have this command
cp test/*.txt NewDirectory/
from my understanding it will go one by one in the test folder
1.txt 2.txt 5.txt 6.txt
but won't copy
because they are not there
I need it to print out or in a log file the files it couldn't find or couldn't copy to the new folder. How do I do that ?