[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggest/Wish re. numbered backup
From: |
Bob Proulx |
Subject: |
Re: Suggest/Wish re. numbered backup |
Date: |
Mon, 26 Jan 2009 21:52:52 -0700 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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