title: awk commands within python script
body: <p>I need to write a python script where I need to call a few awk commands inside of it. </p>
  
  <pre><code>#!/usr/bin/python
  import os, sys
  input_dir = '/home/abc/data'
  
  os.chdir(input_dir)
  #wd=os.getcwd()
  #print wd
  os.system ("tail -n+2 ./*/*.tsv|cat|awk 'BEGIN{FS="\t"};{split($10,arr,"-")}{print arr[1]}'|sort|uniq -c")
  </code></pre>
  
  <p>It gives an error in line 8: SyntaxError: unexpected character after line continuation character</p>
  
  <p>Is there a way I can get the awk command get to work within the python script?
  Thanks</p>