"Brian McCallister" <brianm / apache.org> wrote in message 
news:43dc84d7370b2217664309ef2724deaa / apache.org...
> For the OS X'ers:
>
> curl http://hoho.dyndns.org/~holger/smalltalk.html \
>     | ruby -pe 'gsub!(/Smalltalk/, "Ruby")'  \
>     > foo.html && open foo.html \
>     && sleep 3 \
>     && rm foo.html
>
> For the FreeBSD'ers and Linux'ers:
>
> curl http://hoho.dyndns.org/~holger/smalltalk.html \
>     | ruby -pe 'gsub!(/Smalltalk/, "Ruby")'  \
>     > foo.html && mozilla foo.html & \
>     && sleep 3 \
>     && rm foo.html
>
> Windows folks are on your own, sorry =/

For the Windows folk:

ruby -ropen-uri -e "puts open(
'http://hoho.dyndns.org/~holger/smalltalk.html').read.gsub(/Smalltalk/,
'Ruby')" > foo.html && start foo.html
&& ruby -e "sleep 3"
&& del foo.html

And all that needs to be one line.

Does anyone know if Windows has a line continuation thingy like *nix's 
backslash (\)?

Cheers,
Dave