I would like to sort the temp.txt contains like the following.
1_r0.png
1_r10.png
1_r100.png
1_r105.png
1_r15.png
1_r150.png
1_r155.png
1_r160.png
1_r20.png
I want the sorted result to be
1_r0.png
1_r10.png
1_r15.png
1_r20.png
1_r100.png
1_r105.png
1_r150.png
1_r155.png
1_r160.png
like the above.
Anybody can help me?
I used sort -n temp.txt sort.txt
But it is not working correctly.
I am working under cygwin in WindowsXP.