Friday, January 30, 2009

Seraching for exception in log file

#!/bin/bash
for X in $(egrep -o "[A-Z]\w*Exception" log_week.txt | sort | uniq) ;
do
echo -n -e "processing $X\t"
grep -c "$X" log_week.txt
done

From the productive programmer

No comments:

Setting the limits in Linux permanently

https://singztechmusings.wordpress.com/2011/07/11/ulimit-how-to-permanently-set-kernel-limits-in-linux/ app soft nofile   16384 * hard...