1

Is it possible to get the file name of the most recently created one in a given directory? I wanted to use glob but I realized glob can't sort anything. Can I sort the files and then use glob to get the names? How do I do the first step of sorting files by time created?

By the way, I'm working on a centos 7 machine.

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Young
  • 739
  • 3
  • 9
  • 12
  • @dtanabe No, that windows one doesn't work. I need an answer for linux machines. – Young Jan 16 '19 at 03:08
  • 1
    Although "Windows" is in the title, the examples in the linked post generally seem operating system-agnostic. – dtanabe Jan 16 '19 at 03:10

0 Answers0