Hi everyone,
I am trying to write a ksh script to automate a report.
Part of that must be to find a file the name of which follows a certain pattern,
which was the last one created (of all of those matching the pattern).
Example:
files in folder:
Code:
mama_dblog_grb_20081223.log
papa_dblog_grb_20081120.log
hans_dblog_grb_20081012.log
mama_dblog_grb_20070324.log
... etc
and i want to get the one that was created last, looking like "
mama*.log", so i thought something like
only filtered down to the one file that was created last of all of them...
I know it must be trivial for most, but I am fairly new in this shell game
