Timeline for List files sorted numerically
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 26, 2015 at 11:11 | comment | added | Stéphane Chazelas |
@Prabhu, instead, you could do sort -k1.1,1.3 -k1.4n. sort implementations are not required to be stable so your approach won't work with all implementations. See also the -V option of GNU and FreeBSD sort.
|
|
| S Feb 26, 2015 at 17:36 | history | edited | Anthon | CC BY-SA 3.0 |
Improving formatting.
|
| S Feb 26, 2015 at 17:36 | history | suggested | kenorb | CC BY-SA 3.0 |
Improving formatting.
|
| Feb 26, 2015 at 17:34 | review | Suggested edits | |||
| S Feb 26, 2015 at 17:36 | |||||
| Sep 12, 2014 at 20:53 | comment | added | Prabhu |
In my case, ls -1 | sort -n -k1.4 does not work. It gives unsorted ones at first up to 4 chars then sorted ones after 4th character. I used ls -1 |sort | sort -n -k1.4 instead and it worked perfectly.
|
|
| Mar 12, 2012 at 12:41 | history | answered | Elmar Zander | CC BY-SA 3.0 |