Answers for "bash not if"

C#
1

bash if not

if ! [ $(cat /etc/passwd | grep "sysa") ]; then
        echo "ERROR - The user sysa could not be looked up"
        exit 2
fi
Posted by: Guest on October-22-2021
0

bash if not

if [[a != b]]; then
	echo "a is not b"
else
	echo "a is the same as b"
fi
Posted by: Guest on August-19-2021

C# Answers by Framework

Browse Popular Code Answers by Language