I have a bourne script shell that performs several tasks. One of these tasks is to move some files to a specific directory. Today, when I ran the script, I received the following message:
mv: will not overwrite just-created <filename> with <sameFilename>
where filename is the original file name with the full path, and sameFilename is the exact same file and path. I use this script regularly every day and have never received this message before.
Immediately after running the script, I run it to check if the error persists, and I could not reproduce it again. I am running this script in Red Hat 5 Enterprise.
overwrite shell move redhat
Nacho mezzadra
source share