Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!think!ames!ptsfa!ihnp4!cuae2!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: comp.unix.wizards Subject: Re: #! magic number Message-ID: <1788@ttrdc.UUCP> Date: Sun, 28-Jun-87 04:30:33 EDT Article-I.D.: ttrdc.1788 Posted: Sun Jun 28 04:30:33 1987 Date-Received: Mon, 29-Jun-87 01:37:56 EDT References: a7879@brl-adm.ARPA> <2211@bunker.UUCP> <1097@mtune.ATT.COM> <7180@mimsy.UUCP> Organization: AT&T, Skokie, IL Lines: 27 Summary: like using cannon to kill gopher In article <7180@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes: < In article <21681@sun.uucp> guy%gorodish@Sun.COM (Guy Harris) writes: < >"#!" was not concocted merely to solve the C shell vs. Bourne shell < >problem. < And indeed, it does more: < % egrep uucp:: /etc/passwd < uucp::16:16:UNIX-to-UNIX Copy:/usr/spool/uucppublic:/usr/lib/uucp/recording < % cat /usr/lib/uucp/recording < #! /bin/awk NR > 1 { print } [message] < % < `#! /bin/sed 1d' works too. This is like using a cannon to kill a gopher. Why not /bin/cat << ! [message] ! which will also work on systems other than "Berserkeley" UNIX. -- |------------dan levy------------| Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, | an engihacker @ | vax135}!ttrdc!ttrda!levy | at&t data systems division | Disclaimer: try datclaimer. |--------skokie, illinois--------|