How to script the creation of a text file, with 4/5 lines of text
From: Stephen Copp (scopp_at_ea.com)
Date: 09/30/03
- Next message: Chris F.A. Johnson: "Re: How to script the creation of a text file, with 4/5 lines of text"
- Previous message: Stephen Copp: "Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
- Next in thread: Chris F.A. Johnson: "Re: How to script the creation of a text file, with 4/5 lines of text"
- Reply: Chris F.A. Johnson: "Re: How to script the creation of a text file, with 4/5 lines of text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Sep 2003 19:44:23 -0700
Hello all,
I'm trying to script the creation of a file with a few lines of text. The
thing is that this text contains special characters and filepaths. For
example, the text file I want to create looks something like the following:
THIS = ( that )
PATH = ( /this/is/a/test/test.jar )
(${PATH}) -> (${THIS})
test....
This is what I get when I do the following:
# echo "THIS = ( that ) PATH = ( /this/is/a/test/test.jar ) (${PATH}) ->
(${THIS}) test...." > test.out
THIS: Undefined variable
Adding a '/' in front of the '$' doesn't help either:
# echo "THIS = ( that ) PATH = ( /this/is/a/test/test.jar ) (/${PATH}) ->
(/${THIS}) test...." > test.out
THIS: Undefined variable
I'm trying to do this within a script, so I can't use the following because
I need a ctrl-C to break:
cat > test.out
THIS = ( that )
PATH = ( /this/is/a/test/test.jar )
(${PATH}) -> (${THIS})
test....
Does anyone know how I get around this? Thanks for any help you can give
me.
-Stephen
- Next message: Chris F.A. Johnson: "Re: How to script the creation of a text file, with 4/5 lines of text"
- Previous message: Stephen Copp: "Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
- Next in thread: Chris F.A. Johnson: "Re: How to script the creation of a text file, with 4/5 lines of text"
- Reply: Chris F.A. Johnson: "Re: How to script the creation of a text file, with 4/5 lines of text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|