On Thu, 11 Feb 1999, Chris Blessing wrote:
# #!/bin/sh
# cat vhost-template | sed -e 's/_DOMAIN_/$1/g' -e \ 's/_USERNAME_/$2/g' >
# vhosts/$1.conf
# echo "Added new Virtual Host."
# echo "Server Name:" $1", for user:" $2
#
# So I want it to read vhost-template which contains the _DOMAIN_ and
# _USERNAME_ flags, and replace these flags with the $1 and $2 inputs
# (respectively), then output the file to $1.conf. The echo lines work
# great, saying "Server Name: bleh.com, for user bleh" but the $1 and $2
# specified in the "cat" line are not changed when the script is run. Do
Because they are inside of single ticks '', which means "do not
interpret". Try changing it to
cat vhost-template | sed -e "s/_DOMAIN_/$1/g" -e "s/_USERNAME_/$2/g" >
G'day!
-- n i c h o l a s j l e o n
elegance through simplicity*http://mrnick.binary9.net*[EMAIL PROTECTED]
good fortune through truth*roaming:[EMAIL PROTECTED]*ICQ#2170994*U+($++)
TRA#6805*not all questions have answers*pseudogeek:P+++($++)L+($++)W=lm@b9
trust no-one with an iq under 150*understand yourself before trying others
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]