Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
#!/bin/bash grep $1 /etc/passwd > GREP.txt cat GREP.txt VAR2=$(cut -d : -f 1 GREP.txt) if [ "$VAR2" = "$1" ]; then echo "User Exist." exit 0 else echo "User not Exist." exit 1 fi if [ -z $1 ]; then echo "Sintaxe correta: sh sh01.sh USER." exit 2 fi