2017/09/12 썸네일형 리스트형 [Unix Shell] 아규먼트 파싱 쉘 https://gist.github.com/jehiah/855086 참조 #!/bin/sh # # a simple way to parse shell script arguments # # please edit and use to your hearts content # ENVIRONMENT="dev" DB_PATH="/data/db" function usage() { echo "if this was a real script you would see something useful here" echo "" echo "./simple_args_parsing.sh" echo "\t-h --help" echo "\t--environment=$ENVIRONMENT" echo "\t--db-path=$DB_PATH" e.. 더보기 이전 1 다음