www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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" <Jonathan AT embassynetworks DOT com> |
From: | Randall R Schulz <rrschulz AT cris DOT com> |
Subject: | Re: a touch question |
Cc: | <cygwin AT cygwin DOT com> |
In-Reply-To: | <000d01c1a0b1$5a9eb2d0$0c01a8c0@TWAIN> |
Mime-Version: | 1.0 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |