This is how you can use multiple conditions in single if statement,
“`
#!/bin/bash
if [[ ( “$user” != “condition1” ) && ( “$user” != “condition2” ) && ( “$user” != “condition3” ) ]] ; then
echo “woohoo, its working”
fi
done“`
Subscribe
Login
0 Comments
Oldest