|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Grepping the last 30 minutes of a log file...
I'm back! I know what a pain but this one has me stumped too. Now I need to know if anyone can assist me on how to grab the last (we'll just say "x" minutes) of a log file. How do you tell the grep command without specifying an exact time?
Thanks, J. |
|
#2
|
|||
|
|||
|
Why dont you try to use tail command. If you know approximately how many lines will be written you can run tail -Nf Logfile name. where N is number of lines you want to see.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Grepping the last 30 minutes of a log file... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|