Unix Commands/Scripts for '#Zgrep -i' - 2 Commands/Scripts found |
|
Sample 1. Finding text within .gz (zipped) file without unzipping them | |
|
zgrep -i Error *.gz
|
|
Like Feedback grep zgrep zgrep -i grep within zipped file |
|
|
Sample 2. 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 >> |
|
|