extract pattern using powershell script
<p>My bad, I have updated the question-its using Powershell
my file contains 1000s of lines like below:</p>

<pre><code>&lt;dependency org="${abcd}" name="some-random-name" rev="100.100" conf="compile;runtime"/&gt;
</code></pre>

<p>I would like to get only the output like:
name="some-random-name"</p>

<p>how can i achieve this. please help</p>