home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3672 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!ac!ahn
  3. From: ahn@ac.wfunet.wfu.edu (Dave Ahn)
  4. Subject: Re: How to empty a file
  5. Organization: Columbia University Center for Telecommunications Research
  6. References: <17g4kbINN4bm@seven-up.East.Sun.COM> <BtLLps.But@cs.dal.ca> <1992Aug28.051548.16935@ddsw1.mcs.com>
  7. Message-ID: <ahn.714982174@ac>
  8. Sender: news@ctr.columbia.edu (The Daily Lose)
  9. Date: Fri, 28 Aug 1992 06:09:34 GMT
  10. X-Posted-From: ac.wfunet.wfu.edu
  11. X-Posted-Through: sol.ctr.columbia.edu
  12. Lines: 20
  13.  
  14. dattier@ddsw1.mcs.com (David W. Tamkin) writes:
  15.  
  16. >digdon@ug.cs.dal.ca (Mike Digdon) wrote in <BtLLps.But@cs.dal.ca>:
  17.  
  18. >| You could also do:
  19. >| 
  20. >|     echo > logfile
  21.  
  22. >That will not leave an empty file; the file will contain one newline and
  23. >nothing else, but it won't be empty.
  24. <...>
  25. >David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  26. >dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  27.  
  28. Try 'touch logfile'
  29. -dka
  30.  
  31. -- 
  32. Dave Ahn
  33. ahn@wfunet.wfu.edu
  34.