\$ORIGIN the \ is the secret, also encasing it in "" might work if using an escape is not possable

On Tue, 2004-01-06 at 21:15, Jonathan Nichols wrote:
Evening, all!

Got a quick shell scripting question, if anyone wants to take a stab at 
it. :) I'm writing a script to creat a DNS zonefile and so far, 
everything is working great except for the $ORIGIN (and $TTL) statement.
The phrase "$ORIGIN" is the problem. The script thinks it's a variable, 
obviously.

How can I tell the script to just ignore $ORIGIN and print the text 
"$ORIGIN" in the output instead?

The incorrect output:

[EMAIL PROTECTED] jnichols $ less db.blah.org
  .
  86400      ; 1 day
blah.org            IN SOA  ns1.pbp.net.blah.org hostmaster.pbp.net. (
*snip*

The *CORRECT* output: (what I want)
[EMAIL PROTECTED] jnichols $ less db.blah.org
$ORIGIN .
$TTL 86400      ; 1 day
blah.org            IN SOA  ns1.pbp.net.blah.org hostmaster.pbp.net. (


Notice the difference between the two? ;) I just want the script to 
completely ignore the text "$ORIGIN" and "$TTL" - is there a way to do 
this?

Thanks!

-Jonathan


--
[EMAIL PROTECTED] mailing list
--------------
Bennett's Laws of Horticulture: (1) Houses are for people to live in. (2) Gardens are for plants to live in. (3) There is no such thing as a houseplant.
--------------
Nicholas Hockey ([EMAIL PROTECTED])

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to