View Single Post
Old 04-28-2005, 01:28 AM  
INDK
Confirmed User
 
Join Date: Jan 2004
Location: Edmonton, Alberta
Posts: 75
Here's my Ruby version, just for the hell of it ;)

Code:
IO.foreach('ips.txt') do |line|
   match = line.sub(/^(\d+\.\d+\.\d+)\.\d+$/, '\1').chomp
   for i in 0..255
      print match, ".#{i}\n"
   end
end
INDK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote