ablog

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

2012-03-08から1日間の記事一覧

Perl ワンライナーで遊んだメモ

シリアル % echo 'To be or not to be, that is the question'| perl -lane 'map{s/,//g;$hash{lc($_)}++} @F;foreach(keys %hash){print qq/$_:$hash{$_}/}' the:1 that:1 not:1 is:1 question:1 to:2 or:1 be:2 map だけパラレル? % echo 'To be or not to…