I'm writing a shell script and I need to replace the contents of a configuration file based on what is passed to the script...can I replace expressions in a file from a bash shell script?
technically speaking, yes.
but then you haven't asked the real question yet. =8*)
Yes using sed.
Please post whatever you have and maybe we can help.