[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: touch transverse all dirs

From: Bob Proulx
Subject: Re: touch transverse all dirs
Date: Thu, 13 Sep 2001 21:39:32 -0600

> I just noticed that in 4.0, I can no longer do a transerver touch on all
> child directories.  I want to touch a directory and all the files in it and
> in its sub-directories.
> Should it be "touch -R *"  ?
> Is the functionality removed or am i just not getting the right commands?

I don't remember there ever being recursive functionality in 'touch'.
Check out the online standards docs for more information.


In UNIX almost all of the directory traversing operations that you
would ever want are contained in 'find' to be used in conjunction with
other commands.  What you probably want is this.

  find . -print0 | xargs -0 touch

The UNIX paradigm favors small modular programs that work together to
produce more complicated programs, and repeated as needed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]