On 18/07/2015 9:40 PM, The Wanderer wrote:
> mmv "file.~*~' "file.#1"


Okay, well from the OP ...

  $ cp --backup=t file /destination/file


First time use of mmv:

  $ mmv "file.~*~" "file.#1"


However, the next time you try the cp again, it will create a new ~1~ as
it doesn't exist and using mmv won't give the desired result.


So you would need to do:

  $ (cd /destination; mmv "file.*" "file.~#1~")
  $ cp --backup=t file /destination/file
  $ (cd /destination; mmv "file.~*~" "file.#1")



Cheers
A.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55aa8871.1010...@affinityvision.com.au

Reply via email to