[Slugnet] How to sort files without a leading zero?

P.V.Anthony pvantony at singnet.com.sg
Tue Jan 13 09:49:39 SGT 2009


Puqing wrote:
> This one?
> 
> for i in access.log.*; do echo ${i##access.log.} $i; done|sort -n

Work very nicely. Thank you very much for sharing the above script.

P.V.Anthony



More information about the Slugnet mailing list