Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 7/1/84; site seismo.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!zehntel!dual!amd!decwrl!decvax!mcnc!philabs!cmcl2!seismo!tiberio From: tiberio@seismo.UUCP (Mike Tiberio) Newsgroups: net.unix-wizards,net.unix,net.wanted Subject: csh, awk help Message-ID: <2505@seismo.UUCP> Date: Tue, 31-Jul-84 11:58:43 EDT Article-I.D.: seismo.2505 Posted: Tue Jul 31 11:58:43 1984 Date-Received: Sat, 4-Aug-84 01:40:04 EDT Distribution: net Organization: Center for Seismic Studies, Arlington, VA Lines: 8 I need help, i want to make the following bourne shell script run under csh. This is not my actual script but has the same problems, how do you pass parameters to an awk program? thanks... seismo!tiberio #!/bin/sh awk "BEGIN{id=$2;}{ \ printf(\"%8d %s\n\", id++, \$0); \ }" $1