*概要 [#fc9dc96c] -ShellScriptの書き方 -bashができれば大体shもできるので、bashメイン *デバッグ [#ce6b68df] -''下らないミスをなくすために、必ず以下をかくこと'' #!/bin/bash -コマンド展開 sh -x test_eval_1.sh #展開後実際に起きていることがわかる *bashとshの違い [#kd458d71] -リダイレクト先にメタ記号を使えない *文法 [#k4b2ce77] **if [#r2c7666a] if [ $? -eq 1 ] # []の回りにスペース必須 then continue fi **for [#ffbb6397] -for文ではcontinue可能 **終了ステータス [#pd463b87] -$?で終了ステータス --grepで見つかったかどうかなどが分かる **配列 [#p79c8cfc] list=("1332" "1333" "1605") # =の間にスペースを入れると死ぬ **include [#t49c5f59] . list #listは実行可能である必要は無い |