< cd ..
Bash Scripting for Human Beings
•bash-scripting-for-human-beings.md
Bash Scripting for Human Beings
Bash is ugly. The syntax is archaic. Whitespace matters in ways that make no sense. But it is the glue that holds the computing universe together.
Basic Syntax
#!/bin/bash
echo "Hello, World"
Variables
Remember: no spaces around the equals sign!
NAME="User"
echo "Hello, $NAME"
Loops
for i in {1..5}
do
echo "Iteration $i"
done
Automate everything.