2019-08-28から1日間の記事一覧
あー、なるほどと思ったのでメモ 書き方 $0 とするだけ 例 下記のようなシェル dirs=$0 echo "$dirs !!!" を実行するとこんな感じ $ sh fileout.sh fileout.sh !!! パスを変えたりすると以下の感じ $ sh hoge/fileout.sh hoge/fileout.sh !!! 注意点 あくま…
あー、なるほどと思ったのでメモ 書き方 $0 とするだけ 例 下記のようなシェル dirs=$0 echo "$dirs !!!" を実行するとこんな感じ $ sh fileout.sh fileout.sh !!! パスを変えたりすると以下の感じ $ sh hoge/fileout.sh hoge/fileout.sh !!! 注意点 あくま…