Last active
April 7, 2018 07:38
-
-
Save kmsheng/5fcc1889f74ea317a656fa9a88495da9 to your computer and use it in GitHub Desktop.
example of using shell arguments
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 | |
print_message() { | |
echo | |
echo "arguments are $0 $1 $2" | |
echo | |
} | |
print_message "first" "second" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment