Answers for "and in bash"

1

and in bash

Logical AND (&&)

if [1 -gt 0 ] && [ 2 -gt 1 ]; then 
	echo 1;
fi
 
 Logical OR (||)
 
 if [1 -gt 0 ] || [ 2 -gt 1 ]; then 
	echo 1;
 fi
Posted by: Guest on March-03-2021

Browse Popular Code Answers by Language