News for hackers. Stuff that matters.
Re:The Yoda of Silicon Valley by sobellian on Monday December 17, 2018 @07:22PM (#18703538)
And for completeness, a Ruby implementation:

  puts STDIN.read
    .split(/[^A-Za-z]+/)
    .group_by(&:downcase).transform_values(&:size)
    .sort_by(&:last).reverse
    .take(ARGV[0].to_i)
    .map{ |l| l.join("\t") }.join("\n")
Wordier than the bash script, but still pretty short and fairly trivial. Anyone could make this in five minutes.

There are no comments on this comment yet.