Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 1999 07:02:36 -0600
From:      Don Read <sysop@calcasieu.com>
To:        dissonant <disowned@linda.pomona.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: empty a file?
Message-ID:  <3.0.5.32.19990327070236.0087aba0@pop.calcasieu.com>
In-Reply-To: <Pine.BSF.4.05.9903270446260.52265-100000@linda.pomona.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990327070236.0087aba0>