#! /bin/bash # Displays the number of login attempts by users # Gowtham, 2005.09.23 echo echo " `hostname` login attempts by users in this month" echo last | awk '{print $1}' | sort | uniq -c | sort -nr