
file contents into variable, or global variable from shell script
I want to maintain a filename across editing sessions (i access my
editor through csh shell scripts). I have two choices
1) shell script writes filename to file, reads it later. This requires
a shell command to read first word of a file into a variable - I don't
know how to do this - can you help?
2) shell script defines global variable as filename. I don't know how
to do this either (the variable goes away when the script completes).
Any suggestions appreciated, please use email
thanks
/jeff (jwins...@wireless.tellabs.com)