Hi
evryday I do a backup of some fles
and the result is a filename+number
for example:
log-001340 (first day)
log-001341 (second-day)
log-001342 (third-day)
log-001343
log-001344
In the file there is information like "error or successfull"
I want to run script that will check only the latest file from the list (with the highest number)
for information like error or successfull
and show the info on the screen
someting like : grep successfull log-001344
TIA.
evryday I do a backup of some fles
and the result is a filename+number
for example:
log-001340 (first day)
log-001341 (second-day)
log-001342 (third-day)
log-001343
log-001344
In the file there is information like "error or successfull"
I want to run script that will check only the latest file from the list (with the highest number)
for information like error or successfull
and show the info on the screen
someting like : grep successfull log-001344
TIA.