Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (13 sloc) 0.426 kb
#!/usr/bin/ruby
file = ARGV[0]
File.read(file).each do |line|
line.chomp!
begin
call_number = (/.* \$a (.*)[$\s]/.match(line))[1]
call_number.gsub!(/[A-Za-z\/].*/, '') # Remove any letters and slashes (/)
puts call_number if call_number.to_i < 1000 && call_number.length > 0
rescue Exception => e
# Uncomment to see the call numbers that aren't Dewey
# STDERR.puts "(Error #{e}) #{line}"
end
end
Jump to Line
Something went wrong with that request. Please try again.