From: apaige () idulab ! gov
To: tru64-unix-managers
Subject: nawk passed variable
Date: Thu, 21 Nov 1996 23:11:58 +0000 [thread overview]
Message-ID: <96076341621715.tru64-unix-managers.marc@archive.invalid> (raw)
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'
reply other threads:[~1996-11-21 23:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox