A
A
account-62017-04-07 00:46:10
linux
account-6, 2017-04-07 00:46:10

How to apply touch to all folders/files recursively?

There is a directory with different files and other directories with other files. I need to make all files (including those inside directories) one timestamp. The command touch -am -R *does not work, -R does not accept. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2017-04-07
@account-6

find . -type f -exec touch -am {} \;
Didn't check but seems to be correct

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question