"$ORIGIN" Might not work, as bash interprets variables in double quotes. Single quotes might do the job, though!
Good luck!. I'd use the \ myself, sometimes you just can't use quotes. -Rich On Tue, 06 Jan 2004 21:21:01 -0500 Nicholas Hockey <[EMAIL PROTECTED]> wrote: > \$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]) > -- Richard Monk RHCE, CCAI, MCP, Security+ Program Coordinator, Information Systems Security Forsyth Technical Community College, North Carolina -- [EMAIL PROTECTED] mailing list
