Please pardon my simple question (Unfortunately Google searches haven't been much luck)
With Python, how do I print all files in a directory where:
1) Filenames start with FAIL*
2) Show file timestamps
3) Print in alphabetic Order
4) Extra credit: Show numbered lines (it would make it easier to read)
Would love to see output like the following please:
Thanks in advance!
CG
With Python, how do I print all files in a directory where:
1) Filenames start with FAIL*
2) Show file timestamps
3) Print in alphabetic Order
4) Extra credit: Show numbered lines (it would make it easier to read)
Would love to see output like the following please:
1. Dec 26 22:17 FAIL_ReasonA_Test1.log 2. Dec 25 14:21 FAIL_ReasonA_Test19.log 3. Dec 26 11:06 FAIL_ReasonB_Test3.log 4. Dec 26 22:21 FAIL_ReasonB_Test14.log 5. Dec 11 12:21 FAIL_ReasonC_Test9.logps: Timestamps can say 12/26 or Dec 26, whichever is easier
Thanks in advance!
CG