Linux 検索結果をヘッダ付きで表示 Posted on 2024年8月27日 by keeper awkを使用する 1行目がヘッダの場合 { action } を省略すると、{ print $0 }と同じアクションとして実行する。