![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Need shell/sed script for grep+string replacement | pranavagarwal | Shell Programming and Scripting | 3 | 11-15-2007 06:35 AM |
| Unix shell script (grep -A 6 -B 2 "ORA-" filename | el_guero | Shell Programming and Scripting | 7 | 04-25-2007 05:37 PM |
| grep, sed in a shell script | Trufla | Shell Programming and Scripting | 4 | 04-07-2005 08:57 AM |
| Using Grep in a Shell Script | nbvcxzdz | Shell Programming and Scripting | 8 | 03-19-2005 05:21 AM |
| grep doesn't work within shell script? | barisgultekin | Shell Programming and Scripting | 4 | 05-24-2002 02:01 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
grep in Shell script
Hello
I do want to write a script which will check any errors say "-error" in the log file then have to send email to the concern person . And the concern person will correct the error . Next time if the script runs eventhough the error has been corrected it will send the email . Also one more thing when ever transactions haappened system writes date as well in the log file How do I write a script ? . I am using LINE_FOUND=`grep '"error"' /$LOGNAME/logdir/socket.log | grep -v "grep" | grep - "sh -c" Thanks Krishna |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|