How to `touch` files recursively?
Solution 1:
You can use find
command to find all your files and execute touch
on every found file using -exec
find . -type f -exec touch {} +
If you want to filter your result only for text files, you can use
find . -type f -name "*.txt" -exec touch {} +