Hello all, I sincerely apologize if this question has been asked before but after searching the forums (and a couple of hours of Googling) I have found some clues but nothing that quite addresses the specific problem I have or helps me connect the various pieces.
I have a directory with over 100,000 files in it that I need to grep in order of timestamp. ls doesn't work of course because of the "argument list too long" problem. So far what I have been trying is to use find and then pipe that output into sort, and then finally pipe that into grep but have had no real success so far. After looking through the man page for sort I still can't find a timestamp related option. And unfortunately my filenames are no help (at least as far as I can tell), since they increment by single digits (e.g. xxx_0,xxx_1,xxx_2,...,xxx_10,...,xxx_10000).
Has any one tackled this sort (pun definitely intended
) of issue before?
Thanks in advance for any help you can provide!