Skip to content

Instantly share code, notes, and snippets.

@loomsen
Created June 13, 2010 14:04
Show Gist options
  • Save loomsen/436681 to your computer and use it in GitHub Desktop.
Save loomsen/436681 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'net/http'
myFoo=[]
myFoo<<Net::HTTP.get('www.kernel.org','/kdist/finger_banner')
myArr=[]
myFoo[0].each_line {|y| myArr<<y.split(' ') }
# doIt
puts myArr[1][2] + ":\t" + myArr[1][10]
puts myArr[2][2] + ":\t" + myArr[2][10]
puts myArr[3][2] + ":\t\t" + myArr[3][10]
#puts myArr[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment