# MV option question

**URL:** <https://community.unix.com/t/mv-option-question/321531>\
**Category:** Shell Programming and Scripting\
**Created:** [December 18, 2012, 3:44pm UTC](https://community.unix.com/t/mv-option-question/321531 "2012-12-18T15:44:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dabless](https://community.unix.com/letter_avatar/dabless/32/6_22734026db12803ebb3e059622ac3534.png) [@Dabless](https://community.unix.com/u/Dabless)\
**Post date:** [December 18, 2012, 3:44pm UTC](https://community.unix.com/t/mv-option-question/321531/1 "2012-12-18T15:44:52Z")

</div>

Hi, I have a question about mv --backup=numbered.  
This option add a numbre plus ~ at the end if the filee allready exist.

I want to know if I can use this on :

somthing.1.gz

If the MV can do this thing with the 1 on the name. Like if there is one he will make a backup as somthing.2.gz

Thanks !

---

<div class="post-metadata">

**Author:** ![Scott](https://community.unix.com/letter_avatar/scott/32/6_22734026db12803ebb3e059622ac3534.png) [@Scott](https://community.unix.com/u/Scott)\
**Post date:** [December 18, 2012, 4:04pm UTC](https://community.unix.com/t/mv-option-question/321531/2 "2012-12-18T16:04:44Z")

</div>

Why don't you just try it?

---

<div class="post-metadata">

**Author:** ![Dabless](https://community.unix.com/letter_avatar/dabless/32/6_22734026db12803ebb3e059622ac3534.png) [@Dabless](https://community.unix.com/u/Dabless)\
**Post date:** [December 18, 2012, 4:09pm UTC](https://community.unix.com/t/mv-option-question/321531/3 "2012-12-18T16:09:21Z")

</div>

Actualy, I tryed it but I don't know the syntax. I did:

```nohighlight
mv --backup=numbered -Ssomthing.*.gz

```

But here I block, he do : something.2.gz.something.\*.gz.1  
-S change the end, but I don't know if there is a way to teak it. I Googled it but din't find anything
