nawk passed variable

From: <apaige_at_idulab.gov>
Date: Thu, 21 Nov 1996 18:11:58 -0500

I am now having problems with the UNIX nawk command.

I am prompting a user for a value (any numeric value) and if the user
inputs 100 or higher the program crashes
stating that only a value between 0 and 99 will be accepted. Can anyone
help me with this?

here is the basic code

echo "enter any numeric value"
read xinput

nawk -F: -v xray="$xinput" 'BEGIN { header printed here}
                {value in $xinput to be proccessed here}' external file data name
here.


Thanks

Andre'
Received on Fri Nov 22 1996 - 00:30:00 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT