Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!vax135!whb From: whb@vax135.UUCP (Wilson H. Bent) Newsgroups: comp.unix.questions Subject: executable awk scripts Message-ID: <1881@vax135.UUCP> Date: Wed, 16-Sep-87 16:23:24 EDT Article-I.D.: vax135.1881 Posted: Wed Sep 16 16:23:24 1987 Date-Received: Sat, 19-Sep-87 11:53:16 EDT Reply-To: whb@vax135.UUCP (Wilson H. Bent) Distribution: na Organization: Not Organized Lines: 19 Summary: how to? [ The line-eater lives! Probably because people keep feeding it...] Given that these files are executable, why does this fail: #!/bin/awk { print $1 } when this works: #!/bin/sh /bin/awk '{ print $1 }' FYI: tested under two BSD variants (sorry, no SysV): Sun UNIX 4.2 Release 3.3 Ultrix V2.0-1 System #1: Wed Jul 15 10:28:13 EDT 1987 -- Wilson H. Bent, Jr. ... ihnp4!hoh-2!whb AT&T - Bell Laboratories (201) 949-1277 Disclaimer: My company has not authorized me to issue a disclaimer.