Date: Sat, 27 Mar 1999 05:00:09 -0800 From: David Greenman <dg@root.com> To: dissonant <disowned@linda.pomona.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: empty a file? Message-ID: <199903271300.FAA04011@implode.root.com> In-Reply-To: Your message of "Sat, 27 Mar 1999 04:48:11 PST." <Pine.BSF.4.05.9903270446260.52265-100000@linda.pomona.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903271300.FAA04011>