home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ltaylor@blinky.East.Sun.COM (Laura Taylor)
- Newsgroups: comp.unix.shell
- Subject: Re: How to empty a file
- Date: 26 Aug 1992 14:31:39 GMT
- Organization: Sun Microsystems, Inc.
- Lines: 8
- Distribution: world
- Message-ID: <17g4kbINN4bm@seven-up.East.Sun.COM>
- Reply-To: ltaylor@blinky.East.Sun.COM
- NNTP-Posting-Host: blinky.east.sun.com
-
-
- >> 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.
-
- cp /dev/null <logfile>
-
- /laura
-