#!/bin/bash BLOCK=`tail -1 /var/log/syslog | cut -c -9` grep "$BLOCK" /var/log/syslog | grep "blocked for more than"