title: awk in subprocess call fails for multiple pipes
body: <p>I'm trying to execute an awk command to process some text files inside a python script. The following line will print the last 2 columns of the input file and sort by the second col. This command works:
  <code>subprocess.call([&quot;awk&quot;,'{print $NF,$(NF-1) | &quot;sort -k 2 -n&quot; }', file2],stdout=f3)</code>.</p>
  <p>Now I would like to cut remove the NF col from the sorted file. I added the following line and it gives me syntax error on &quot;pipe&quot;
  <code>subprocess.call([&quot;awk&quot;,'{print $NF,$(NF-1) | &quot;sort -k 2 -n&quot; | '$NF=&quot;&quot;;print'}', file2],stdout=f3)</code></p>
  <p>what am I missing in my syntax?</p>