Linux / UNIX Tech Support Forum
This is a discussion on shell script to open log files and check for faults within the Shell scripting forums, part of the Development/Scripting category; Hi all, i need help with a shell script that opens log files and checks for anomalies or faults....
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Use simple grep and redirection. For example find all occurance of error and store to /tmp/error.log file
Code:
grep -i 'error' /var/log/message > /tmp/error.log
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to check the disk space on remote systems | vijayscripts | Shell scripting | 5 | 21-10-2007 06:29 PM |
| Shell script for automatic conversion of files in tar files | kasimani | Shell scripting | 2 | 08-02-2007 03:45 PM |
| shell script that parses multiple log files and checks for a | Anonymous | Shell scripting | 1 | 15-11-2006 09:38 PM |
| How to Configure Mozilla to automatically open PDF files | sweta | Getting started tutorials | 0 | 12-10-2006 11:14 PM |
| How to Get a List of Open Files? | tom | Linux software | 1 | 08-07-2005 11:10 PM |