Last active
March 9, 2017 19:28
-
-
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
This file contains hidden or 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
"$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