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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!bu.edu!Shiva.COM!world!geoff
  2. From: geoff@world.std.com (Geoff Collyer)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How to empty a file
  5. Message-ID: <BtxIIn.ALK@world.std.com>
  6. Date: 2 Sep 92 02:20:45 GMT
  7. References: <1992Aug28.051548.16935@ddsw1.mcs.com> <ahn.714982174@ac> <1992Sep1.190410.17063@prism.poly.edu> <1992Sep2.003609.9978@venice.sedd.trw.com>
  8. Organization: The World @ Software Tool & Die
  9. Lines: 10
  10.  
  11. Larry Gilmore:
  12. >When I had to ensure a zero-length file, I used:
  13. >
  14. >cat /dev/null > foofile
  15.  
  16. What's wrong with ">file" (or ": >file" for you csh users)?
  17. -- 
  18. Geoff Collyer        world.std.com!geoff, uunet.uu.net!geoff
  19.  
  20. ``Leave the evil grasping to us.'' - A. L. Arms, UNIX licensing, WECo.
  21.