home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!nixpbe!usun01!hoepfner
- From: hoepfner@usun01.UUCP (Andreas Hoepfner)
- Newsgroups: comp.unix.shell
- Subject: Re: How to empty a file
- Message-ID: <1099@usun01.UUCP>
- Date: 8 Sep 92 09:52:11 GMT
- 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>
- Organization: Nixdorf Computer AG, Paderborn, Germany
- Lines: 25
-
- In <BtxIIn.ALK@world.std.com> geoff@world.std.com (Geoff Collyer) writes:
-
- >Larry Gilmore:
- >>When I had to ensure a zero-length file, I used:
- >>
- >>cat /dev/null > foofile
-
- >What's wrong with ">file" (or ": >file" for you csh users)?
- >--
-
- Whats about 'cp /dev/null foofile'. Gives me the same result....
-
-
- +-----------------------------------------------------------------------+
- | Andreas Hoepfner |
- | |
- | paper mail: e-mail: |
- | Siemens Nixdorf Informations |
- | Systeme USA: hoepfner.kd@sni-usa.com |
- | Abt. PU 2221 !USA: hoepfner.kd@sni.de |
- | Heinz Nixdorf Ring |
- | D-4790 Paderborn |
- | tel.: (+49) 5251 8-27479 |
- +-----------------------------------------------------------------------+
-
-