list the directories in ordering

Luciano Rocha strange at nsk.no-ip.org
Fri Nov 2 14:48:32 UTC 2007


On Fri, Nov 02, 2007 at 10:41:17PM +0800, adrian kok wrote:
> Hi all
> 
> I have the following directories. how can I list it in
> ordering from 
> 
> dir-10.0.30.0-net
> dir-10.0.30.104-net
> dir-10.0.30.112-net
> dir-10.0.30.200-net
> dir-10.0.30.232-net
> dir-10.0.30.240-net
> dir-10.0.30.24-net
> dir-10.0.30.248-net
> dir-10.0.30.32-net
> dir-10.0.30.8-net
> dir-10.0.30.88-net
> dir-10.0.30.96-net
> 
> to
> 
> dir-10.0.30.0-net
> dir-10.0.30.8-net
> dir-10.0.30.24-net
> dir-10.0.30.32-net
> ....... 
> dir-10.0.30.248-net

ls -v sorts by `version'.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071102/c37b2513/attachment-0001.sig>


More information about the fedora-list mailing list