Posted By

suvorinov on 02/10/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

suvorinov


List directory contents, numeric sort. Put result into array.


 / Published in: Ruby
 

  1. $listoffile = %x(ls | sort -n).split("\n")

Report this snippet  

You need to login to post a comment.