X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: -exec on find(1) broken Date: Tue, 9 Oct 2007 10:58:34 +0200 Message-ID: <3BD8CF653D67544E9D2768E3F10FFC5D02A834BB@boebe101.NOE.Nokia.com> In-Reply-To: <470B288E.8060504@columbus.rr.com> References: <470B1B1B DOT 2060404 AT columbus DOT rr DOT com> <20071009062547 DOT GA19172 AT suncomp1 DOT spk DOT agilent DOT com> <470B22FF DOT 10107 AT columbus DOT rr DOT com> <470B288E DOT 8060504 AT columbus DOT rr DOT com> From: To: , X-Nokia-AV: Clean X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l998xAEg000342 Then you better use xargs: find . -type f -mtime +18 -print0 | xargs -0 rm -i > -----Original Message----- > [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of ext Paul McFerrin > find . -type f -mtime +18 -exec /bin/echo {} \; | more > > is the correct syntax. Now I just replace "/bin/echo" with "/bin/rm" > and I ready to go. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/