emptying a file and keeping its ownership

David I. Berg dberg at informix.com
Tue Jan 1 06:18:05 AEST 1991


> 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 at 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.



More information about the Comp.unix.xenix.sco mailing list