Article View: comp.sys.next.sysadmin
Article #529Re: Printer Accounting
From: Felix A. Lugo
Date: Fri, 10 Apr 1992 02:29
Date: Fri, 10 Apr 1992 02:29
25 lines
1471 bytes
1471 bytes
In article <1992Apr8.013359.11762@fsg.com> chuck@fsg.com (Chuck Yerkes) writes:
|
| Actually the appropriate Unix way of creating an empty file is
| "touch filename" Creates if none existed, leaves it if there
| "cp /dev/null filename" make an empty file (if there before or not)
|
|
| Not to pick nits, but it's a VERY important shell script trick
Actually, the appropriate UNIX (hackers) way of creating an empty file is
":> filename" (not including quotes, and the ":" is optional in
the Bourne shell, but required in Csh).
8^)
--
===========================================================================
Felix A. Lugo
E-Mail: (NeXTmail preferred) Felix_A_Lugo@ATT.COM
coco@ihcoco.att.com
AT&T NeXT User Group nug@ihcoco.att.com
HOME NeXTcube home@ihcoco.att.com
===========================================================================
Technical Details
Message-ID:
<1992Apr10.022933.20050@cbnewsl.cb.att.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!uwm.edu!linac!att!cbnews!cbnewsl!ihcoco!cocoReferences:
<1992Apr3.170725.26447@kakwa.ucs.ualberta.ca> <1992Apr5.005549.1702@nic.csu.net> <1992Apr8.013359.11762@fsg.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!uwm.edu!linac!att!cbnews!cbnewsl!ihcoco!coco From: coco@ihcoco.att.com (Felix A. Lugo) Subject: Re: Printer Accounting Organization: AT&T Bell Laboratories, Naperville, I.L. Date: Fri, 10 Apr 1992 02:29:33 GMT Message-ID: <1992Apr10.022933.20050@cbnewsl.cb.att.com> References: <1992Apr3.170725.26447@kakwa.ucs.ualberta.ca> <1992Apr5.005549.1702@nic.csu.net> <1992Apr8.013359.11762@fsg.com> Sender: news@cbnewsl.cb.att.com (NetNews Administrator) Nntp-Posting-Host: ihcoco.ih.att.com Lines: 25