週末には少しPerlを。

Perlスクリプトの学習日記です。

パターンにマッチした以降の行のみを出力するワンライナー

perl -ne '$f =1 if /pattern/; print if $f;' sample.txt