Ruby one liner to print all addresses within a range of addresses:
ruby -ripaddr -e '(IPAddr.new("192.168.0.0").to_i .. IPAddr.new("192.168.0.255").to_i).each {|a| puts IPAddr.new(a,Socket::AF_INET).to_s}'
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
« Bill Simmons on the Mavs selection of Maurice Ager | Main
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Gleaming instruction and hope it could make lots of fun with Ruby. Thanks dude for the sparkling segments.
Posted by: Nathan Green | April 15, 2011 at 06:24 AM
Really fun with Ruby and IP addresses, thanks for the segments.
Posted by: sell my car | April 17, 2011 at 04:30 PM
I think it could be maybe just an expression of hubris, who knows.
Posted by: Mirrored Furniture | May 09, 2011 at 08:48 AM
I love Ruby on Rails, thanks.
Posted by: Rutland Hotel | May 10, 2011 at 05:02 PM
Awesome!
Posted by: Kevin Smith | June 26, 2011 at 07:48 AM
Really fun!
Posted by: supplements | July 10, 2011 at 07:12 AM
This is really helpful. I really had hard time understanding ruby. I hope this will run on my framework. I better try it.
Posted by: Jeremy Preet | December 15, 2011 at 09:51 AM