csh, awk help

Mike Tiberio tiberio at seismo.UUCP
Wed Aug 1 01:58:43 AEST 1984


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



More information about the Comp.unix.wizards mailing list