AlmightyOatmeal
public shellscript v1 · immutable#!/bin/bash$username=$1function check {cat /etc/passwd |grep $username}if [ -n "$username" ]; then if [ -n check=0 ]; then echo "User exists" else echo "User does not exist" fielse echo "Username not specified"fi=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OUTPUT:jamie@yourmammasflufferbutter $ sh checkuser.sh adamcheckuser.sh: line 3: =adam: command not foundUsername not specified