Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
shell variable parsing in a file?
- X-seq: zsh-workers 5405
- From: Jason Price <gt5076c@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: shell variable parsing in a file?
- Date: Tue, 16 Feb 1999 17:13:48 -0500 (EST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I guess...
What I'd like to do is create a file like so:
user.$USER.group.$GROUP
and several such lines. Some just strait text, some with shell variables
interspersed.
I thought that:
echo "`cat datafile`"
would do the interpretation, but it didn't.
Is there a way that I can do this?
What I'm trying to do is set up a script that will querry for group name,
and some other data, and then set up some tables for them to use under
mySQL. If there is an easier way to do this, let me know, as a DBA, I am
not. (groups would come in and out, and this would set up the base set of
tables. We're coding up a nicer UI for them to modify and extend the
tables, but the base creation would be done at the begining of the term by
some administrator.)
Thanks;
Jason
(PS: I tried to send this to zsh-users@xxxxxxxxxxxxxx, but that bounced.
I'm probably braindead though and forgot what the real address was/is)
--
"Do not confuse Repentance with Disgust: for one comes from the Landlord,
and the other is from the Enemy." --C.S. Lewis _The_Pilgrim's_Regress_
Jason Price jprice@xxxxxxxxxx
Christian, Catholic, Sysadmin, Linux installer, Theta Xi, Atlanta-TEC.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author