From owner-freebsd-questions Sat Mar 27 5: 2:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id 8DA201522C for ; Sat, 27 Mar 1999 05:02:18 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id FAA04011; Sat, 27 Mar 1999 05:00:09 -0800 (PST) Message-Id: <199903271300.FAA04011@implode.root.com> To: dissonant Cc: freebsd-questions@FreeBSD.ORG Subject: Re: empty a file? In-reply-to: Your message of "Sat, 27 Mar 1999 04:48:11 PST." From: David Greenman Reply-To: dg@root.com Date: Sat, 27 Mar 1999 05:00:09 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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? cp /dev/null file -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message