ablog

不器用で落着きのない技術者のメモ

2013-05-14から1日間の記事一覧

2行にまたがっている iostat のログを1行にするのに使ったPerlワンライナー

% perl -pe '/sssn[0-9]+s:/ and chop' iostat.txt > iostat_tmp.txt % perl -pe 's/(sssn[0-9]+s:[\/\w]+)iostat\s[0-9\/]{10}\s[0-9:]{8}/$1/' iostat_tmp.txt > iostat_mod.txt