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.

Required fields*

14
  • I mean the last time a file was modified :) Commented Jan 18, 2012 at 6:35
  • Sort result is ordered by folder and date. I want to sort by date and folder.. is it possible? Commented Jan 18, 2012 at 6:59
  • Sorry, can you please show me some output? I didn't quite follow the sorting of folder if you used ls -lrt. Commented Jan 18, 2012 at 7:11
  • //Jaypal Singh, I updated my output to my quiestion ↑ :). I really hope you understand it and sorry for my bad English. Commented Jan 18, 2012 at 7:25
  • 2
    This fails if the file list is sufficiently long to force xargs to make multiple calls to ls, because then the files are only properly sorted within each ls invocation but lack a coherent global order in the output. Commented Mar 4, 2016 at 3:56