JOse--

> #tail oldfile > oldfile

Clever! Although, of course, the question was EMPTYING the file, not cutting 
it down to the last 10 ines...

Actually, I don't see why redirecting output from tail would have any 
different effect on the target file than redirecting output from echo. 
Shouldn't both be simple stdout redirects into oldfile? Shouldn't both have 
the same effect on oldfile's permissions?

-- 
Dan Ray
Director Custom Applications
Triangle Research, Inc.
http://www.triangleresearch.com

Reply via email to