title: How to extract a pattern from a file and append to another on linux
body: <p>I've a txt file that contains a web page source code , i want to extract all links that contains &quot;https://ANYTHING.amazonaws.com&quot; in it to a new file.</p>
  <p>The new file will contain:</p>
  <pre><code>https://test-ok.amazonaws.com
  https://hhhhh.hhhh.amazonaws.com
  https://anything.dd.dd.amazonaws.com
  </code></pre>
  <p>the links doesn't have to be in a specific tag or something, they can be anywhere in any tag!</p>
  <p>Thanks!</p>