Not sure why there is a necessity for using awk ? You could use shell's built-in command called read to take Input from user, following is an example for same too.
cat script.ksh
echo "enter a variable please:"
read variable
echo "I am printing variable here......."
echo $variable
So while running the above script following output will come.
./script.ksh
enter a variable please:
R. Singh
I am printing variable here.......
R. Singh
I hope this helps you, kindly do let me know if you have any queries on same.
27
down vote
You cannot grab the output of an awk system() call, you can only get the exit status. Use the getline/pipe or getline/variable/pipe constructs