If you want to update the access time of a set of files, you can use
touch *
However, if you want to touch files and directories recursively, the touch command does not have a built in option. Instead use this command to achieve the same result:
If XXX is the dir within which you want to touch recursively, execute the foll. (Give the full path to XXX as needed)
find XXX | xargs touch
Subscribe to:
Post Comments (Atom)
2 comments:
This doesn't work on sub folders and files that have spaces in the name. How do you get around that?
use find . -print0 | xargs -r0 touch
Post a Comment