While executing a shell script either a LOGNAME or the UID is supplied at the command prompt.Write a shell script to find how many terminals has this user logged in.
if [ $# -eq 1 ] then who>user.lst echo "$1 User is logeed at " grep -c $1 user.lst else echo "Pls enter User Name" fi -------------------------------------------------------------------------------- OUTPUT: $ sh15 testuser testuser User is logeed at 1 ________________________________________________________________________________