I'm writing a shell script (bash) to fetch and build several bits of software, the. The script also writes several small config files and needs to alter a couple of pre-existing config files. What is the best way to find and substituesubstitute a few lines of a text file from a bash script?
This sounds like a job for sedsed, but I don't understand the syntax...