#!/bin/bash KI=$(last | head -n1 | cut -d\ -f1) echo $KI last | cut -d\ -f1 | fgrep $KI | wc -l