Sha256: 6763bed29ee096d895a0f867e5f71dc15f7b20f84aae70cc53f0acc0bed0cc7c
Contents?: true
Size: 278 Bytes
Versions: 26
Compression:
Stored size: 278 Bytes
Contents
#!/usr/bin/env ruby begin require 'rubygems' require 'classifier' rescue require 'classifier' end require 'open-uri' num = ARGV[1].to_i num = num < 1 ? 10 : num text = open(ARGV.first).read puts text.gsub(/<[^>]+>/,"").gsub(/[\s]+/," ").summary(num)
Version data entries
26 entries across 26 versions & 9 rubygems