Created
June 13, 2010 14:04
-
-
Save loomsen/436681 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
#!/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