ablog

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

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