zsh-workers
 help / color / mirror / code / Atom feed
From: Jason Price <gt5076c@cad.gatech.edu>
To: zsh-workers@sunsite.auc.dk
Subject: shell variable parsing in a file?
Date: Tue, 16 Feb 1999 17:13:48 -0500 (EST)	[thread overview]
Message-ID: <199902162213.RAA15329@gypsy.cad.gatech.edu> (raw)

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@sunsite.auc.dk, 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@gatech.edu
Christian, Catholic, Sysadmin, Linux installer, Theta Xi, Atlanta-TEC.


             reply	other threads:[~1999-02-16 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-16 22:13 Jason Price [this message]
1999-02-17  4:06 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199902162213.RAA15329@gypsy.cad.gatech.edu \
    --to=gt5076c@cad.gatech.edu \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).