I want to mv files and not overwrite duplicates. The -b switch only makes a single backup file, whereas I may have many.
According to the mv man page:
The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:
none, off
never make backups (even if --backup is given)
numbered, t
make numbered backups
existing, nil
numbered if numbered backups exist, simple otherwise
simple, never
always make simple backups
I think I want to use the 'existing, nil' option... but I can't figure out how to call that.
If my command is:
mv $src $dest
How can I implement the 'existing, nil' option?
cpinstead ofmv: unix.stackexchange.com/a/9902 – Connor Leech Oct 26 '15 at 1:20