Hello... I'm trying to write a HTML form that allows our users that are
locked into a Lynx (web browser) interface to lookup email aliases...
I have a cgi-bin that parses the forms input into the cgi-bin script into
a variable, $query. It works fine if they only enter one user-id, but if
they enter more than one ID on the line, the following gawk command
messes up.. So, as I'm trying to idiot-proof the form, I have the command
query=`echo "$query" | gawk '{print $1}'`
which I intended to grab the first word from the string $query and dump
the rest -- but for some reason it doesn't work.. This is running in a
#!/bin/sh script.. (I've tried the same command from the commandline and
it works fine!)
Any help would be appreciated.. Please cc: it to
---------------------------------------------------------------------------
Matt Kelly