2009-07-21 スクリプトのあるディレクトリを絶対パスで取得する bash #!/bin/bash script_path=$(cd $(dirname $0); pwd) echo $script_path