title: Replacing all values with the key 'value' in a file
body: <p>I have a file with keys and values as strings and I want to replace all values of every key with what's the value of the key, for example, currently the file is like this:</p>
  <p>&quot;key1&quot; = &quot;value1&quot; <br />
  &quot;key2&quot; = &quot;something else&quot;</p>
  <p>What i want to do is replace every value with it's very own key:</p>
  <p>&quot;key1&quot; = &quot;key1&quot; <br />
  &quot;key2&quot; = &quot;key2&quot;</p>
  <p>Since the file is quite large (4k lines), is there a shortcut I can use to do the replacements? I use xCode and Swift (if there's something I can do using these tools).</p>