This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

----extPart_ST_15_42_33_Tuesday_July_02_2002_17570
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

>>> hal9000 / hypermetrics.com 7/2/02 12:28PM >>>
----- Original Message ----- 
From: "Massimiliano Mirra" <list / NOSPAMchromatic-harp.com.web-hosting.com>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Tuesday, July 02, 2002 12:19 PM
Subject: Re: Question: ruby vs. ksh

> recurse(dir) do |item|
>   File.delete(item)
> end
> 
> 
> Find.find is very similar, though it first visits directories and then
> their content (preventing to delete directories), and does not change
> the current dir.

`find #{start} ! -type d`.each { |file|
      File.delete(file)
      }

ksh again :-O

....Hal Fulton said:

> It might also be good to have an iterator that only
> visited directories. But I haven't thought that through.

`find #{start} -type d`.each { |dir|
     ....
     }

ksh yet again.... :-O

----extPart_ST_15_42_33_Tuesday_July_02_2002_17570
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4912.300" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Microsoft Sans Serif; MARGIN-LEFT: 2px">
<DIV>&gt;&gt;&gt; hal9000 / hypermetrics.com 7/2/02 12:28PM &gt;&gt;&gt;<BR>----- 
Original Message ----- <BR>From: "Massimiliano Mirra" 
&lt;list / NOSPAMchromatic-harp.com.web-hosting.com&gt;<BR>To: "ruby-talk ML" 
&lt;ruby-talk / ruby-lang.org&gt;<BR>Sent: Tuesday, July 02, 2002 12:19 
PM<BR>Subject: Re: Question: ruby vs. ksh<BR><BR>&gt; recurse(dir) do 
|item|<BR>&gt;&nbsp;&nbsp; File.delete(item)<BR>&gt; end<BR>&gt; <BR>&gt; 
<BR>&gt; Find.find is very similar, though it first visits directories and 
then<BR>&gt; their content (preventing to delete directories), and does not 
change<BR>&gt; the current dir.</DIV>
<DIV>&nbsp;</DIV>
<DIV>`find #{start} ! -type d`.each { |file|</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File.delete(file)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV>ksh again :-O</DIV>
<DIV>&nbsp;</DIV>
<DIV>....Hal Fulton said:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; It might also be good to have an iterator that only<BR>&gt; visited 
directories. But I haven't thought that through.</DIV>
<DIV>&nbsp;</DIV>
<DIV>`find #{start} -type d`.each { |dir|</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; ....</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV>ksh yet again.... :-O</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

----extPart_ST_15_42_33_Tuesday_July_02_2002_17570--