Is it possible to construct a command that will move the file to another directory and if the same file is already there, generate some random string that is not in the name of some file in the directory and rename the file to this random string?
I know the mv -i command, so I do it manually and files that are contained rename to something else.
thank you