List of Users Logged in Today ================================ #!/bin/bash today=`date | awk '{print $1,$2,$3}'` #last | grep $today | awk '{print $1}' last | grep "$today" ------------------------------------------------------------- Ask for Input #!/bin/bash echo "please enter day (e.g. Mon)" read d echo "please enter month (e.g. Aug)" read m echo "please enter date (e.g. 28)" read da last | grep "$d $m $da"