[NTLUG:Discuss] How do I make all files in a directory of zero length?

Lance Simmons lance at lsimmons.net
Wed Jun 6 11:12:36 CDT 2001


I want to go into a directory and make all the files of zero
length. What's the easiest way to do this?

Do I need to save the filenames, delete the files, and then
touch the saved filenames?

Is there a more direct way to achieve the result I'm looking for? 

-- 
  .~.
  /v\   Lance Simmons
 // \\  lance at lsimmons.net
/(   )\
__^_^________________________________________________________________________
Science can purify religion from error and superstition. Religion can purify
science from idolatry and false absolutes.
                 -- Karol Wojtyla



More information about the Discuss mailing list