Skip to content

Instantly share code, notes, and snippets.

@var-bin
Last active March 9, 2017 19:28
Show Gist options
  • Save var-bin/c4a356b07f2b14d5b30aabaed15a82ed to your computer and use it in GitHub Desktop.
Save var-bin/c4a356b07f2b14d5b30aabaed15a82ed to your computer and use it in GitHub Desktop.
How to process arguments in a bash script. Repository https://github.com/var-bin/terminalForCoder__WSD
"$1" # first argument
"$2" # second argument
"$0" # script name
"$#" # number of scripts
"$@" # each parameter is shown as a new line
# (word), ie parameters don’t undergo any kind of
# interpretation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment