Why does awk always print full lines? : <p>When attempting to use <code>awk</code> to get the process ID from the output of <code>ps aux</code> like so:</p>

<pre><code>ps aux | awk "{ print $2 }"
</code></pre>

<p>No matter what number of row I attempt to print, <code>awk</code> always outputs the full line. I've never managed to get it to work properly. I'm using macOS which apparently uses a different type/version of <code>awk</code>, but I can't find an alternative syntax which might work.</p>

<p>Any advice would be greatly appreciated!</p>
