Unix Commands/Scripts for '#-iname' - 2 Commands/Scripts found |
|
Sample 1. find occurences of a particular error in last n days | |
|
find /opt/WebSphere/AppServer/profiles/application/logs/ -iname "SystemOut*" -mtime -7 -exec zgrep "FileNotFoundException" {} ; >> logAnalysis.txt
|
|
Like Feedback find zgrep -iname 0mtime >> |
|
|
Sample 2. Get all Errors in a log file for last n days in a seperate error file | |
|
find /LogFilesfolder/ -iname "SystemOut*" -mtime -7 -exec zgrep "| ERROR |" {} ; >> logReport.txt
|
|
Like Feedback find -iname -mtime zgrep find errors in log file |
|
|