![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tail | grep lagging badly | WasabiVengeance | Shell Programming and Scripting | 3 | 04-22-2008 07:53 PM |
| tail, grep and cut | sylaan | Shell Programming and Scripting | 7 | 03-04-2008 02:41 AM |
| Help with tail /grep needed | Felix2511 | UNIX for Dummies Questions & Answers | 4 | 05-17-2007 04:22 PM |
| Constantly updating log files (tail -f? grep? awk?) | nortonloaf | UNIX for Dummies Questions & Answers | 0 | 12-03-2006 11:20 PM |
| grep, sed in a shell script | Trufla | Shell Programming and Scripting | 4 | 04-07-2005 09:57 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Grep or Tail in shell script
Hi,
I am writing a shell script that checks catalina logs on a production system and mails me if it detects errors. It greps the logs for known errors which i have defined as variables. The problem is the logs are huge, approx 30,000 before they rotate. So I am forced to use grep instead of tailing 30,000 lines. But while testing grep I end up getting re-notified of previous errors that still exist in the logs. Is there another way of doing this? |
| Bookmarks |
| Tags |
| grep or |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|