Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.1.0.14.2.20020118222504.023b0170@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 18 Jan 2002 22:31:21 -0800 To: "Jonathan Simms" From: Randall R Schulz Subject: Re: a touch question Cc: In-Reply-To: <000d01c1a0b1$5a9eb2d0$0c01a8c0@TWAIN> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Jonathan, [ To my knowledge, this is not Cygwin-specific. ] Here's one simple way: rtouch() { touch $(find "$@"); } Rather slower, but unlimited by maximum argument list length limit: rtouch() { find "$@" -exec touch '{}' ';' ; } If you want to be able to include touch options, then you'll need to make a pass over the arguments, culling options into one array and file or directory arguments into another and then making one or the other of the touch / find invocations. I'll leave that "as an exercise for the reader." Randall Schulz Mountain View, CA USA At 22:20 2002-01-18, you wrote: >Is there any way of touch-ing recursively? > >------------------------------------------ >Jonathan Simms -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/