Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (7 sloc) 265 Bytes
#!/usr/bin/ruby -w
# Get all of the CRC definitions from Greg Cook's CRC catalog.
require 'open-uri'
cat = "http://reveng.sourceforge.net/crc-catalogue/all.htm"
open(cat).each do |line|
line.match(/<code>\s*(width=.*)\s*<\/code>/i) { puts $1.squeeze(' ') }
end