14 lines
241 B
Bash
14 lines
241 B
Bash
|
#!/usr/bin/env bash
|
||
|
name=$USER
|
||
|
|
||
|
while [[ $name = * ]]; do
|
||
|
echo -n "Enter a username to check: "
|
||
|
read name
|
||
|
if grep $name /etc/passwd > /dev/null
|
||
|
then
|
||
|
echo "$name is on this system"
|
||
|
else
|
||
|
echo "$name does not exist"
|
||
|
fi
|
||
|
done
|