Show notes
The previous lesson gave you the shapes — if, case, for, functions. This one is the detail inside the brackets, and it is where scripts go quietly wrong rather than loudly wrong. A script with a syntax error stops and tells you. A script that compares two numbers as strings runs perfectly and gives the wrong answer, every time, until somebody notices that the disk-space alert never fired because "9" was considered greater than "10".
Full written lesson, labs and practice questions: https://itechvista.com/blogs/lessons/bash-tests-operators-and-variables
All 48 lessons…
Website: podcasters.spotify.com
