Skip to content

Instantly share code, notes, and snippets.

@kmsheng
Last active April 7, 2018 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmsheng/5fcc1889f74ea317a656fa9a88495da9 to your computer and use it in GitHub Desktop.
Save kmsheng/5fcc1889f74ea317a656fa9a88495da9 to your computer and use it in GitHub Desktop.
example of using shell arguments
#!/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