home *** CD-ROM | disk | other *** search
/ Nebula / nebula.bin / Documents / FAQ / CDROM / .LastMinute / Touch.txt (.txt) < prev   
Text File  |  1992-12-25  |  711b  |  23 lines

  1. UNIX RT
  2. Category 20,  Topic 5
  3. Message 83        Sat Nov 28, 1992
  4. MIKE.NOLAN                   at 16:28 EST
  5.  
  6. 'touch *' should update the timestamp on all files in the directory. If you
  7. would like to do so on all files in subdirectories as well, something like
  8. 'find . -exec touch {} \;' should suffice.  (The find command is incredibly
  9. powerful and underutilized, IMO.)
  10. ----------
  11. C.COUGAR [Cougar]            at 00:18 EST
  12.  
  13. find underutilized?!?  I can't go a day at work without my friend find. :) 
  14. (And you should see my root crontab -- loaded with 'find' commands.)
  15.  
  16. And of course, if you want to change the date/timestamp of selected files, you
  17. can use:
  18.  
  19. find . -ok touch {} \;
  20.  
  21.  
  22. Lex
  23.