I am working on a script to configure a server. Basically the script installs several services and copies configuration files in to place.
I would like to replace the username in one of the configuration files with the content of another file.
The input file is one line of text which contains the username.
The config file has multiple lines of text but only one line refers to the username.
How do I replace the username of the config file with the username stored in the input file?