Your first bash script
You'll write your first scripts: with a shebang and execute permission, variables and arguments, `if` conditions, a `for` loop and the right exit code.
- Your first script: shebang and running iteasy
- Move the server name into a variableeasy
- The shebang and ways to run a scriptinterview questioneasy
- Script arguments: $1 and $#easy
- if: does the file existeasy
- if: compare a number with a thresholdeasy
- A for loop: a copy of every logeasy
- Exit code: a health-check scripteasy
- What an exit code isinterview questioneasy