home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3854 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.6 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!nixpbe!usun01!hoepfner
  2. From: hoepfner@usun01.UUCP (Andreas Hoepfner)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How to empty a file
  5. Message-ID: <1099@usun01.UUCP>
  6. Date: 8 Sep 92 09:52:11 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> <BtxIIn.ALK@world.std.com>
  8. Organization: Nixdorf Computer AG, Paderborn, Germany
  9. Lines: 25
  10.  
  11. In <BtxIIn.ALK@world.std.com> geoff@world.std.com (Geoff Collyer) writes:
  12.  
  13. >Larry Gilmore:
  14. >>When I had to ensure a zero-length file, I used:
  15. >>
  16. >>cat /dev/null > foofile
  17.  
  18. >What's wrong with ">file" (or ": >file" for you csh users)?
  19. >-- 
  20.  
  21. Whats about 'cp /dev/null foofile'. Gives me the same result....
  22.  
  23.  
  24.  +-----------------------------------------------------------------------+
  25.  |                     Andreas Hoepfner                                  |
  26.  |                                                                       |
  27.  |     paper mail:                            e-mail:                    |
  28.  | Siemens Nixdorf Informations                                          |
  29.  |         Systeme                      USA:  hoepfner.kd@sni-usa.com    |
  30.  | Abt. PU 2221                         !USA: hoepfner.kd@sni.de         |
  31.  | Heinz Nixdorf Ring                                                    |
  32.  | D-4790 Paderborn                                                      |
  33.  | tel.: (+49) 5251 8-27479                                              |
  34.  +-----------------------------------------------------------------------+
  35.  
  36.