From owner-freebsd-questions Sat Mar 27 5: 3:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fir.calcasieu.com (fir.calcasieu.com [209.99.46.67]) by hub.freebsd.org (Postfix) with ESMTP id 3EC941522C for ; Sat, 27 Mar 1999 05:03:29 -0800 (PST) (envelope-from sysop@calcasieu.com) Received: from cruft (cruft.austin.calcasieu.com [192.168.170.124]) by fir.calcasieu.com (8.8.8/8.8.8-2.0) with SMTP id HAA00303; Sat, 27 Mar 1999 07:02:33 -0600 (CST) Message-Id: <3.0.5.32.19990327070236.0087aba0@pop.calcasieu.com> X-Sender: sysop@pop.calcasieu.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Sat, 27 Mar 1999 07:02:36 -0600 To: dissonant From: Don Read Subject: Re: empty a file? Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 04:48 AM 3/27/99 -0800, dissonant wrote: >Sorry to ask a dumb unix question....but, is there any easy way, in the >shell or in a script of some sort, to empty a file, leaving its >permissions, uid/gid, etc, untouched? > pine.sysop$ ls -l total 607472 -rw-rw-r-- 1 sysop user 7594496 Mar 26 20:31 IPHQUOTE.DF -rw-rw-r-- 1 sysop user 302211584 Mar 26 19:08 IPQUOTES.DF -rw-r--r-- 1 ecsguest user 1008 Oct 13 13:58 blast.log pine.sysop$ su Password: # >blast.log # ls -l total 607470 -rw-rw-r-- 1 sysop user 7594496 Mar 26 20:31 IPHQUOTE.DF -rw-rw-r-- 1 sysop user 302211584 Mar 26 19:08 IPQUOTES.DF -rw-r--r-- 1 ecsguest user 0 Mar 27 07:00 blast.log Regards, -- Don Read sysop@calcasieu.com EDP Manager dread@texas.net Calcasieu Lumber Co. Austin TX - There cannot be a crisis next week. My schedule is already full. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message