ファイルを作成
$ vim test.sh
test.sh
#!/bin/sh
# 例:SSHでログイン
ssh username@host.example.com
# コマンド
# ・
# ・
ユーザに実行権限を与える
$ chmod u+x test.sh
実行する
$ ./test.sh
Blog URL : http://www.utano.jp/ (Syntax Error.)
More than 5 years have passed since last update.
$ vim test.sh
#!/bin/sh
# 例:SSHでログイン
ssh username@host.example.com
# コマンド
# ・
# ・
$ chmod u+x test.sh
$ ./test.sh
Blog URL : http://www.utano.jp/ (Syntax Error.)
Register as a new user and use Qiita more conveniently