#!/bin/bash
#The script name: checking.sh
#Date: 2012/07/26
$NAME
if test -z $1
then echo "Place enter a username:"
elif fgrep $1 /etc/passwd >/dev/null
then echo "Found $1 in the /ect/passwd file."
else echo "No such $1 on our system."
fi
#!/bin/sh
if [ -z $1 ];then
echo "there is no parameter!"
fi
username=$1
if [ -n `grep $username /etc/passwd` ];
then
echo "found $username in /etc/passwd"
else
echo "no user in system"
fi