All tools

Shell Scripting

You're viewing a free preview. Sign in free to read every tool guide.

Two ways to test a condition: [ ] and [[ ]] [[ ]] is Bash's own, newer test syntax — safer (no word splitting surprises on an unquoted variable) and more capable (&&, ||, and pattern matching all work directly inside…

Comparison & Test Operators

Sign in free to read this guide, along with the rest of the DevOps Tools library.

Sign in free
Comparison & Test Operators — Shell Scripting Guide | DevOps Level