"構文エラー 予期しないファイル終了 (eof) です" というエラーメッセージに関する原因と対処に関して説明します。
エラーメッセージ(日本語):
構文エラー 予期しないファイル終了 (eof) です
対処
Related link
シェルスクリプト - シェルスクリプトの改行コード|teratail
https://teratail.com/questions/120280
Linux - .bashrc が更新できません|teratail
https://teratail.com/questions/117349
【シェル】【エラー】ヒアドキュメントのEOFの前にスペースは入れてはいけない
http://suganoo.hatenablog.com/entry/2018/04/20/181506
シェルスクリプト 改行コードが不正な場合(CR+LF)の出力について - ぽんた ...
http://pontalean.blog.fc2.com/blog-entry-13.html?sp
Lubuntu 初めてのシェルスクリプト ? Linux 学習記録
https://linux4322.wordpress.com/2017/06/25/lubuntu%E3%80%80%E5%88%9D%E3%82%81%E3%81%A6%E3%81%AE%E3%8・・・
bashのif文で構文エラー: - Linux系OS 解決済み| 【OKWAVE】
https://okwave.jp/qa/q7998840.html
構文エラー 予期しないファイル終了 (eof) です | その他
http://www.it-word.net/Suggest/all-messages/E6A78BE69687E382A8E383A9E383BC20E4BA88E69C9FE38197E381AA・・・
質問!ITmedia - bashのif文で構文エラー:
http://qa.itmedia.co.jp/qa7998840.html
bash での空文字判定?
http://qa.itmedia.co.jp/qa8313461.html
bashはそんなに便利なのか?
http://qa.itmedia.co.jp/qa1301798.html