Introduction
The [[ ]] extended test lets you check conditions in bash scripts easily. It helps decide what to do next based on facts.
Check if a file exists before reading it.
Compare two numbers to choose a path.
Test if a string is empty or not.
Verify if a directory is writable.
Decide actions based on user input.