Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

show info from logfile

Status
Not open for further replies.

municipal

Programmer
Jan 1, 2001
62
IL
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.
 
-v flag mean Displays all lines not matching the specified pattern
maybee U have other response
TIA.
 
Sorry i got this response

grep: 0652-033 Cannot open total.
grep: 0652-033 Cannot open 16.
maybee U know what is the mistake
TIA..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top