#!/bin/ksh count=`wc -l /etc/passwd | awk '{print $1}'` mod=`/usr/bin/expr $count % 100` if [ $mod -eq 0 ] then echo "There are multiples of 100 in the /etc/passwd file" else echo "$count mod 100 is $mod" fi