home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!ac!ahn
- From: ahn@ac.wfunet.wfu.edu (Dave Ahn)
- Subject: Re: How to empty a file
- Organization: Columbia University Center for Telecommunications Research
- References: <17g4kbINN4bm@seven-up.East.Sun.COM> <BtLLps.But@cs.dal.ca> <1992Aug28.051548.16935@ddsw1.mcs.com>
- Message-ID: <ahn.714982174@ac>
- Sender: news@ctr.columbia.edu (The Daily Lose)
- Date: Fri, 28 Aug 1992 06:09:34 GMT
- X-Posted-From: ac.wfunet.wfu.edu
- X-Posted-Through: sol.ctr.columbia.edu
- Lines: 20
-
- dattier@ddsw1.mcs.com (David W. Tamkin) writes:
-
- >digdon@ug.cs.dal.ca (Mike Digdon) wrote in <BtLLps.But@cs.dal.ca>:
-
- >| You could also do:
- >|
- >| echo > logfile
-
- >That will not leave an empty file; the file will contain one newline and
- >nothing else, but it won't be empty.
- <...>
- >David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- >dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-
- Try 'touch logfile'
- -dka
-
- --
- Dave Ahn
- ahn@wfunet.wfu.edu
-