On Fri, 2 Nov 2007, 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 run the list of names thru "sort -t. -k4n,4". rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ========================================================================