[Top][All Lists]

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

Re: Suggest/Wish re. numbered backup

From: Paul E Condon
Subject: Re: Suggest/Wish re. numbered backup
Date: Tue, 27 Jan 2009 00:56:30 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On 2009-01-26_2152.52, Bob Proulx wrote:
> Paul E Condon wrote:
> > My suggestion is that the software also rename the earlier backup
> > files as follows: In each name, insert the digit zero (0) in front of
> > the digit [1-9].  This will preserve the correct display order of the
> > backups in a simple invocation of "ls -l" . This will make for a
> > more cleanly ordered display up to 99 backups. 
> Are you aware of the -v sort by version option for ls?  This will
> usually sort the display as you desire by treating the filenames as
> versioned named.
>   ls -logv
> Does that do what you want?
> You can read more about version sorting in the ls documentation.
>   info coreutils 'Sorting the output'
> Bob

Yes. It is a better solution than what I was suggesting.  I now need
an excuse for not thinking to look in info coreutils and only looking
in info ls, which is just a repeat of the man page on my machine. Is
that because I'm running Debian?

But no excuses. coreutils is the greatest!
Paul E Condon           

reply via email to

[Prev in Thread] Current Thread [Next in Thread]