Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 4
    This is a standard option for sort, not a GNU extension. This will work if the paths are all of the same length. Commented Sep 23, 2017 at 15:47
  • Same answer in the same time :) Commented Sep 23, 2017 at 15:47
  • 5
    This works only if the paths contain a single directory each. What about some/long/path/0011.pdf? As far as I can see from its man page, sort does contains no option to sort by the last field. Commented Sep 24, 2017 at 12:24