example.sh
#!/bin/sh
cd [移動したいディレクトリの絶対パス]
ドットコマンドを使う
$ . example.sh
sourceコマンドを使う
$ source example.sh
Blog URL : http://www.utano.jp/ (Syntax Error.)
More than 5 years have passed since last update.
#!/bin/sh
cd [移動したいディレクトリの絶対パス]
$ . example.sh
$ source example.sh
Blog URL : http://www.utano.jp/ (Syntax Error.)
Register as a new user and use Qiita more conveniently