home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!bu.edu!Shiva.COM!world!geoff
- From: geoff@world.std.com (Geoff Collyer)
- Newsgroups: comp.unix.shell
- Subject: Re: How to empty a file
- Message-ID: <BtxIIn.ALK@world.std.com>
- Date: 2 Sep 92 02:20:45 GMT
- References: <1992Aug28.051548.16935@ddsw1.mcs.com> <ahn.714982174@ac> <1992Sep1.190410.17063@prism.poly.edu> <1992Sep2.003609.9978@venice.sedd.trw.com>
- Organization: The World @ Software Tool & Die
- Lines: 10
-
- 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)?
- --
- Geoff Collyer world.std.com!geoff, uunet.uu.net!geoff
-
- ``Leave the evil grasping to us.'' - A. L. Arms, UNIX licensing, WECo.
-