ls -RS ~/coding/ | grep '\.txt' | sort -n -k5
Yeah, good catch on the \. Anyway, if I run
*ls -RS ~/coding/ | grep '\.txt' | sort -n -k5* I get a lexically sorted list of .txt's in my coding directory, no sizes next to them
*ls -RSi ~/coding/ | grep '\.txt' | sort -n -k5*
I get a list sorted by serial number (node number)
eg like this
2382637 qt.txt
2382638 ut.txt
2382639 uc.txt
2382640 ft.txt
2382641 fxt.txt
2382642 fyt.txt
2382643 fzt.txt
2442686 outputs138.80.txt
2442688 readme.txt
937046 LICENSE.txt
937221 GPL.txt
937311 LICENSE.txt
bigspring:filemerger mas
My way gives something like this
952K /Users/masonkramer/coding//latticesim/build/Debug/lmax,100,da,1.0,swaps,24003,d x,1.0,dy,1.0,dz,1.0,px,.1,py,.1,pz,.1/swaplog.txt
952K /Users/masonkramer/coding//latticesim/build/Debug/lmax,100,da,1.0,swaps,24004,d x,1.0,dy,1.0,dz,1.0,px,.1,py,.1,pz,.1/swaplog.txt
952K /Users/masonkramer/coding//latticesim/build/Debug/lmax,100,da,1.0,swaps,24005,d x,1.0,dy,1.0,dz,1.0,px,.1,py,.1,pz,.1/swaplog.txt
956K /Users/masonkramer/coding//latticesim/build/Debug/lmax,100,da,1.0,swaps,24001,d x,1.0,dy,1.0,dz,1.0,px,.1,py,.1,pz,.1/swaplog24001.txt
960K /Users/masonkramer/coding//latticesim/build/Debug/lmax,100,da,1.0,swaps,24002,d x,1.0,dy,1.0,dz,1.0,px,.1,py,.1,pz,.1/swaplog24002.txt