home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3631 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  699 b 

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!seven-up.East.Sun.COM!blinky!ltaylor
  2. From: ltaylor@blinky.East.Sun.COM (Laura Taylor)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How to empty a file
  5. Date: 26 Aug 1992 14:31:39 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 8
  8. Distribution: world
  9. Message-ID: <17g4kbINN4bm@seven-up.East.Sun.COM>
  10. Reply-To: ltaylor@blinky.East.Sun.COM
  11. NNTP-Posting-Host: blinky.east.sun.com
  12.  
  13.  
  14. >> I'd like to empty a log file after extracting what I need from it so that
  15. >> the next day's data can fill it up a-fresh.  The file must exist after
  16. >> emptying it.
  17.  
  18. cp /dev/null <logfile>
  19.  
  20. /laura
  21.