Walt Mankowski on 5 Oct 2009 07:51:01 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] using mv as a backup


On Mon, Oct 05, 2009 at 07:58:55AM -0400, Mag Gam wrote:
> I know you can use mv to make backup
> 
> I was wondering if anyone got the:
> 
> --suffix--suffix
> 
> part working.
> 
> I would like to get
> 001
> 002
> 003
> and so on.
> 
> 
> No just ~1, ~2
> 
> Any ideas?

I'm confused about what you mean by

  --suffix--suffix

You can get numbered backups by saying

  mv --backup=numbered foo.txt foo.txt.old

but those are numbered sequentially without leading 0s.  There doesn't
seem to be any way to get mv to do what you want with the leading 0s
without some programming.

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug