Program:
if test $# -lt 1
then
echo "improper usage: $o username"
fi
logname=$1
line=`grep $logname /etc/passwd`
oldifs="$IFS"
IFS=:
set $line
clear
tput cup 10 20
echo "user id =$1"
tput cup 11 20
echo "user id=$3"
tput cup 13 20
echo "comment about the user =$5"
tput cup 14 20
echo "default working directory =$6"
tput cup 15 20
echo "default working shell =$7"
Input/OutPut
user id=
comment about the user =
default working directory =
default working shell =
No comments:
Post a Comment