← All tips Bash: use `[[ ... ]]` for safer tests bashbasics [[ is more robust than [ in many cases. if [[ -f "file.txt" ]]; then echo ok; fi