====== 01 ファイルの指定行を抜き出す====== ===== 指定行を表示 ===== これで、hogehoge.confの100行目を表示 $ sed -n 100p /etc/hogehoge.conf ===== 指定行間を表示 ===== これで、hogehoge.confの100行目~120行目を表示 $ sed -n 100,120p /etc/hogehoge.conf ===== 指定行目以降を表示 ===== これで100行目以降を表示 $ tail -n +100 /etc/hogehoge.conf ===== 指定行目以降でawk ===== 3行目以降を表示 $ awk 'NR>2 {print}' /etc/hogehoge.conf {{tag>bash awk}}