Bash-cheat sheet

from blog blog, | ↗ original
Bash - cheat sheet Contents Arguments Conditionals Colors Arguments variable description $0 name of the script $1 first argument $2 second argument $ argument, where n > 0 $@ all arguments as one string $# count of arguments Example #!/bin/bash echo script started with $# args: $@ for arg in "$@"; do echo "$arg" done # $ ./script.sh...