zsprackett-oclug at sprackett.com
Sat Apr 24 11:48:02 EDT 2004
* Francis J. A. Pinteric wrote:
> Just a question. Why do you want to do this? I read this as your desire
> to release the storage of all the files in a directory without removing
> the names.
> Do you have something against "rm *"?
rm * is bad if you're working with something like a logfile. The
application still holds an open filehandle to the deleted file and
subsequent log messages can be lost. It is less disruptive to truncate
in place through a simple shell redirect as suggested in the original
for I in *; do
zac sprackett zac at sprackett dot com
ottawa, canada lpic-1,ccna
gpg fingerprint: CC8A DB41 4B47 ABD0 C6CE BEFC 5FCC FDF4 4DE6 F9CE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20040424/c3c1720d/attachment.bin
More information about the OCLUG