title: How to use awk command in python
body: <p>I have to write a python script to find available space in /var/tmp folder in linux. So I am using awk command to filter out only available space.</p>
  
  <pre><code>import subprocess
  subprocess.call("$(awk 'NR==2 {print $4}' file1.txt)")
  </code></pre>
  
  <p>The output should be 4.7G but it comes 
  /bin/sh: 1: 4.7G: not found
  and the return value is 127 and not 0.</p>