I may have been a bit quick on the draw on this one, but I though I had is solved. What I did was:
if [ -f filename ]
echo "file was moved"
The problem is, after I moved it, the filename is obviously no longer the same. It consists out of the the new path and filename that was moved. For instance, moving /usr/test/myfile
, the latter is the new full path. What I need is the filename only to do the search...