Created
March 20, 2015 15:57
-
-
Save sammarder/a9ece55a0eea8d1b772b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Main: | |
#!/usr/bin/ruby -w | |
require_relative 'hello world' | |
require_relative 'irssiparse' | |
counter = 1 | |
File.open("/home/sam/irclogs/freenodeSSL/busybear.log", "r") do |infile| | |
while (line = infile.gets) | |
puts "#{counter}: #{line}" | |
counter = counter + 1 | |
parse(line) | |
end | |
end | |
meth1 | |
External: | |
#!/usr/bin/ruby -w | |
# --- Log opened Sat Sep 06 18:28:43 2014 | |
#18:30 kubunto: but then again money is in streaming anyway | |
def parse(:line) | |
puts line | |
end | |
Get expected ']' as an error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment