Shell awk command with FS
<p>I have created a script with an awk command that reads:</p>

<pre><code>myVar=$(awk -v FS="HAMMER=" 'NF&gt;1{print $2}' TEST.properties)
echo "Appliances="$myVar
</code></pre>

<p>The file <code>TEST.properties</code> contains the following:</p>

<pre><code>...
HAMMER=foo1,foo2
JACKHAMMER=foo3
...
</code></pre>

<p>the above command returns </p>

<pre><code>foo1,foo2
foo3
</code></pre>

<p>How should I modify the command to find only <code>HAMMER</code> and not every word containing <code>HAMMER</code>?</p>