シェルスクリプトTips

ファイルから1行ずつ読み込んで処理する

cat ファイル名 | while read 変数
do
    変数を使った処理
done