Click to See Complete Forum and Search --> : Exporting variable to a Log file


ITJedi
03-04-2003, 11:33 PM
I am working on a shell script that I want to export imputed variables. Does anyone know the syntax to do this? Please respond with the code if possible. Thanks.

Here is the code as is...

echo "Please enter name:"
read NAME
echo "Please enter age:"
read AGE

How do I export this to a file so that I can call it up later.

baldguy
03-05-2003, 12:14 AM
echo "$NAME $AGE" >> logfile

ITJedi
03-05-2003, 09:37 AM
That works. Thanks!