Skip to content

Instantly share code, notes, and snippets.

@boushi-bird
Last active August 10, 2016 02:06
Show Gist options
  • Select an option

  • Save boushi-bird/7906850 to your computer and use it in GitHub Desktop.

Select an option

Save boushi-bird/7906850 to your computer and use it in GitHub Desktop.
#!/bin/bash
BASEDIR=`dirname $0`
CMDNAME=`basename $0`
# 引数の数チェック 例の場合3つあるか確認
if [ $# -ne 3 ]; then
echo "Usage $CMDNAME <RARAM1> <RARAM2> <RARAM3>"
exit 1
fi
PARAM1=$1
PARAM2=$2
PARAM3=$3
# カレントディレクトリを移動
cd $BASEDIR
# 設定ファイルの読み込み
source any.conf
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment