Xref: utzoo comp.unix.xenix.sco:1204 comp.unix.shell:1155 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!voder!pyramid!infmx!dberg From: dberg@informix.com (David I. Berg) Newsgroups: comp.unix.xenix.sco,comp.unix.shell Subject: Re: emptying a file and keeping its ownership Message-ID: <1990Dec31.191805.11840@informix.com> Date: 31 Dec 90 19:18:05 GMT References: <1990Dec30.220722.29050@jarvis.csri.toronto.edu> Sender: news@informix.com (Usenet News) Distribution: na Organization: Informix Software, Inc. Lines: 11 > I have SCO Xenix 2.2.3. What's the easiest way to "empty" a file > while keeping its ownership (owner,group) and access permissions the > same? How about: cat /dev/null >! $FILE ___ ___ dberg@cougar.informix.com / ) __ . __/ /_ ) _ __ Informix Software Inc. (303) 850-0210 _/__/ (_(_ (/ / (_(_ _/__> (-' -/~ (_- 5299 DTC Blvd #740; Englewood CO 80111 {uunet|pyramid}!infmx!dberg The opinions expressed herein do not necessarily reflect those of Informix Inc.