Hi,
I would like to write a shell script that moves files from one folder to another without retrieving the error 'can not acces/find file or folder' when the source folder is empty.
Any ideas,
Thx in advance,
Steven.
Hi,
I would like to write a shell script that moves files from one folder to another without retrieving the error 'can not acces/find file or folder' when the source folder is empty.
Any ideas,
Thx in advance,
Steven.
Try using the '-f' option to mv
Try adding the following to the end of your command:
> /dev/null 2>&1
So, if you want to run a command, but don't want any output visible (including errors) it would look like this:
mycommand > /dev/null 2>&1