Bash

Bash

Everything can be solved with a little Bash
Oct
23
How to do conditional execution in Bash

How to do conditional execution in Bash

In Bash scripts, any command following a && will only execute if the previous conditional or command succeeded (returned 0)
1 min read
Oct
22
How to check if a string is empty in Bash

How to check if a string is empty in Bash

To check if a string is empty in a Bash script, use the -z conditional which returns 0 (true) if
1 min read