purl's posterous

« Back to posts
  • Viewed
    times
September 10, 2011

pipeline for top 100 repeated word list in article/book

  • Edit
  • Delete
  • Tags
  • Autopost

perl -MList::MoreUtils=natatime -lane ’END{ $it  = natatime 100, sort {$cnt{$b} <=> $cnt{$a}} keys %cnt; print for map {join  qq(\t), $_, $cnt{$_}} $it->() } $cnt{$_}++ for @F’

Tweet
  • 0 responses
  • Like
  • Comment