Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Tony Hammitt <thammitt@kc.rr.com>
Subject: Re: exact syntix of find + touch ??
Date: 2000/02/11	[thread overview]
Message-ID: <38A39758.8BB1DF5@kc.rr.com> (raw)
In-Reply-To: 87vpi8$d0v$1@sun27.hrz.tu-darmstadt.de

Thomas Jaeger wrote:
> 
> Mathieu Millet <llihtam@minet.net> wrote:
> >find -newer now -exec "touch {};"
> 
> Try:
> find -newer now -exec touch {} \;
> 
>         Thomas
> 
> ------------------------------------------------------------------------
> Thomas Jaeger <jaeger@mathematik.tu-darmstadt.de>
> pgp-key : ftp://linux.mathematik.tu-darmstadt.de/pub/linux/people/jaeger
> ------------------------------------------------------------------------

That way is a bit slow, try:

find / -newer now -print | xargs touch

xargs will put as many filenames as it can on one command line
then execute the command, then repeat.  It's _much_ faster than
find -exec

Regards,

Tony



      reply	other threads:[~2000-02-11  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-11  5:00 exact syntix of find + touch ?? Mathieu Millet
2000-02-11  5:00 ` Thomas Jaeger
2000-02-11  5:00   ` Tony Hammitt [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox