This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# (The directive above is called a "shebang": https://en.wikipedia.org/wiki/Shebang_(Unix) ) | |
# Helper function that prints each of the arguments (functions can be | |
# declared with `function <name> { ... }` or `<name>() { ... }) | |
printArguments() { | |
# arguments come in as the variables $1, $2, $3, ... | |
count=1 | |
# (( ... )) does numeric tasks | |
while (( $# )); do |