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
- [newbie] deleting contents of a file Craig Westerman
- Re: [newbie] deleting contents of a file Tim Holmes
- Re: [newbie] deleting contents of a file Dan Ray
- RE: [newbie] deleting contents of a file Franki
- RE: [newbie] deleting contents of a file Jose M. Sanchez
- Re: [newbie] deleting contents of a file Dan Ray
- Re: [newbie] deleting contents of a file Jan Wilson