View Single Post
Old Oct 19th, 2004, 7:58 PM   #1
joeljkp
Newbie
 
Join Date: Oct 2004
Location: Mississippi State University, USA
Posts: 1
Rep Power: 0 joeljkp is on a distinguished road
Send a message via ICQ to joeljkp Send a message via AIM to joeljkp Send a message via MSN to joeljkp
I'm trying to write a simple Bash script that performs some string and file operations, then runs an app on the result. This involves inserting a value into an existing external file.

So far, I've been doing this by echoing the first part of the file, then the variable, then the last part of the file, but this means that the file is internal to the script, instead of being an external entity.

I'm thinking that it'll be easier to just insert a $VARIABLE at the correct spot in the external file, then get Bash to parse it and replace this variable.

Any tips on how to do such a thing?

Thanks in advance.
__________________
Like my post? Help me get an iPod!
joeljkp is offline   Reply With Quote