Created
August 22, 2016 13:20
-
-
Save developer-sdk/c8a4d42f82aaa8ec8b174e1f4a2c62c9 to your computer and use it in GitHub Desktop.
쉘 스크립트에서 파라미터의 개수 확인
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
| #!/bin/bash | |
| if [ $# -ne 2 ]; then | |
| echo "script need 2 parameter" | |
| exit 1 | |
| fi | |
| echo "first parameter "$1", second parameter"$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment