作業ノート

様々なまとめ、雑感など

スクリプトのあるディレクトリを絶対パスで取得する

#!/bin/bash
script_path=$(cd $(dirname $0); pwd)

echo $script_path