On Sep 19, 2008, at 9:32 PM, Bill Kelly wrote:

> --------------
> NEW CHALLENGE:
> --------------
>
> # Given one or more input filenames on the command line, # report  
> the number of unique IP addresses found in all the
> # data.
> #
> # (For our purposes, an IP address may simply be considered
> # four integerers separated by dots, e.g.: 6.54.123.9 )
> #
> # Optionally, the solution should read stdin if no filenames
> # were specified.
> #
> # Preferably, the solution should be expressed in the form of
> # a ruby command-line invocation. (Optional.)

ruby -e 'p ARGF.read.scan(/\d{1,3}(\.\d{1,3}){3}/).uniq.size'

New puzzle:  Provide a one-liner that can wrap a body of text at a  
requested maximum length.

James Edward Gray II