home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3638 < prev    next >
Encoding:
Text File  |  1992-08-26  |  825 b   |  28 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!unislc!livings
  3. From: livings@unislc.uucp (Ross Livingston)
  4. Subject: Re: How to empty a file
  5. X-Newsreader: Tin 1.1 PL5
  6. References: <1992Aug26.130704.4434@trentu.ca>
  7. Message-ID: <1992Aug26.163907.14875@unislc.uucp>
  8. Organization: Unisys Corporation SLC
  9. Date: Wed, 26 Aug 1992 16:39:07 GMT
  10. Lines: 16
  11.  
  12. Ken Brown (ccksb@blaze.trentu.ca) wrote:
  13. : I'd like to empty a log file after extracting what I need from it so that
  14. : the next day's data can fill it up a-fresh.  The file must exist after
  15. : emptying it.
  16. : Any suggestions?
  17.  
  18. How about just
  19.  
  20. $ > file
  21.  
  22. This will 0 it for you.
  23. -- 
  24. Ross Livingston, Unisys Corp.  |  Phone   (801) 594-6217
  25. 322 North  2200 West,   D1V03  |  Fax     801-594-4861 / 801-594-6708
  26. Salt Lake City, UT   84116     |  E-Mail  livings@unislc.slc.unisys.com
  27.