Skip to content

Instantly share code, notes, and snippets.

@sammarder
Created March 20, 2015 15:57
Show Gist options
  • Save sammarder/a9ece55a0eea8d1b772b to your computer and use it in GitHub Desktop.
Save sammarder/a9ece55a0eea8d1b772b to your computer and use it in GitHub Desktop.
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