home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!unislc!livings
- From: livings@unislc.uucp (Ross Livingston)
- Subject: Re: How to empty a file
- X-Newsreader: Tin 1.1 PL5
- References: <1992Aug26.130704.4434@trentu.ca>
- Message-ID: <1992Aug26.163907.14875@unislc.uucp>
- Organization: Unisys Corporation SLC
- Date: Wed, 26 Aug 1992 16:39:07 GMT
- Lines: 16
-
- Ken Brown (ccksb@blaze.trentu.ca) wrote:
- : I'd like to empty a log file after extracting what I need from it so that
- : the next day's data can fill it up a-fresh. The file must exist after
- : emptying it.
- :
- : Any suggestions?
-
- How about just
-
- $ > file
-
- This will 0 it for you.
- --
- Ross Livingston, Unisys Corp. | Phone (801) 594-6217
- 322 North 2200 West, D1V03 | Fax 801-594-4861 / 801-594-6708
- Salt Lake City, UT 84116 | E-Mail livings@unislc.slc.unisys.com
-