[NTLUG:Discuss] How do I make all files in a directory of zero length?
MadHat
madhat at unspecific.com
Wed Jun 6 11:28:34 CDT 2001
At 11:12 AM 6/6/2001 -0500, you wrote:
>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?
cat /dev/null > *
should work, but be careful.
>--
> .~.
> /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
>_______________________________________________
>http://www.ntlug.org/mailman/listinfo/discuss
--
MadHat at unspecific.com
"Focus on the packet. It's better that way."
-tb
More information about the Discuss
mailing list