LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   'touch' command on subtree/files (https://www.linuxquestions.org/questions/linux-software-2/touch-command-on-subtree-files-95869/)

stoffell 09-23-2003 10:03 AM

'touch' command on subtree/files
 
Hi,

I'd like to accomplish a recursive "touch" of files.
There's no option like -R to do a recursive touch of files.

Any idea on how to work-around this? In MC I couldn't find anything usefull ... And i'm talking about a LOT of subdirectory's :-)

Cheers...

druuna 09-23-2003 10:22 AM

This should work

find . -type f -exec touch {} \;

If find is new to you, please read the man page/howto

stoffell 09-23-2003 10:40 AM

find
 
ouch..
awesome, thanks !!!!


All times are GMT -5. The time now is 04:08 PM.