|
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!
|