I have a rather large config file that has server short names in it like this:
[host 1]
host = server1
[host 2]
host = server2
[host 3]
host = server3
I need to replace all the server short names with the fq long names that will be outputted from a bash script I've already written, lookup.sh. Can I work some sed or awk magic to accomplish this task?
lookup.sh <hostname>?