#02:シェルスクリプトで Hello world
シェルスクリプトのはじめの一歩として、定番の「Hello world」を出力します。シェルスクリプトの初歩的な書き方から実行まで、シェルスクリプトの基本操作を学習しましょう。
hello.sh
echo "hello world"
$ bash hello.sh
hello.sh
#!/bin/bash
echo "hello world"
パーミッションを変更する
$ chmod u+x hello.sh
コマンドを実行する
$ ./hello.sh
UNIX & Linux コマンド・シェルスクリプト リファレンス
https://shellscript.sunone.me/
Bash基礎文法最速マスター - いろいろ解析日記
http://d.hatena.ne.jp/nattou_curry_2/20100131/1264910483
シェル・スクリプト・リファレンス INDEX | 日経 xTECH(クロステック)
https://tech.nikkeibp.co.jp/it/article/COLUMN/20060224/230580/