I am trying to find a ways how to find last n newest files for multiple directories.
The problem with that is that the directories are structured, but not really hierarchical placed, but they have specific names. Example:
The problem for me is the following: I can use -regex option in the find command, but that can give me only newest files after further commands for search filtering newest file, but that is only valid for the latest file regardless of the sensor that is used.
What am I trying to achieve is to create output in which the latest n files would be shown based on the time stamp.
How can I do that as simply as possible?