#!/bin/sh if [ -n "$1" ]; then if grep -q "$1" /etc/passwd; then echo "User exists"; else echo "User does not exist"; fi else echo "Username not specified"; fi