Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 15 lines (12 sloc) 0.366 kb
f6a92ce @wdenton Added scripts
authored
1 #!/usr/bin/ruby
2
3 file = ARGV[0]
4
5 File.read(file).each do |line|
6 line.chomp!
7 begin
8 call_number = (/.* \$a (.*)[$\s]/.match(line))[1]
9 call_number.gsub!(/[A-Za-z\/].*/, '') # Remove any letters and slashes (/)
10 puts call_number if call_number.to_i < 1000 && call_number.length > 0
11 rescue Exception => e
12 STDERR.puts "(Error #{e}) #{line}"
13 end
14 end
Something went wrong with that request. Please try again.