Hello guys, today I will leave a quick tip on how to make comparisons on the Linux command line using Shell Script.
Examples:
[ 1 == 1 ] && echo 1 || echo 0
Result is 1
[ 1 == 3 ] && echo 1 || echo 0
Result is 0
Hello guys, today I will leave a quick tip on how to make comparisons on the Linux command line using Shell Script.
Examples:
[ 1 == 1 ] && echo 1 || echo 0
Result is 1
[ 1 == 3 ] && echo 1 || echo 0
Result is 0
For further actions, you may consider blocking this person and/or reporting abuse
Vivek P -
HazTechyContent -
UTCLI Solutions -
Michael Amachree -
Top comments (0)