title: Search / Replace using key:values from file in bash?
body: <p>So I have a file of "keys", for example:</p>
  
  <pre><code>key1
  key2
  key3
  </code></pre>
  
  <p>and I have a file of key:value pairs:</p>
  
  <pre><code>key1:value1
  key2:value2
  key3:value3
  </code></pre>
  
  <p>I want to replace the keys in my file of keys with their corresponding values in the key:value file. So the file of keys will look like this when complete:</p>
  
  <pre><code>value1
  value2
  value3
  ...
  </code></pre>
  
  <p>What is the best way to do this in bash? Note that a key may appear more than once in the keys file, but should only appear once in the key:values file.</p>