I have the following awk command:
 awk FPAT="([^,]+)|(\"[^\"]+\")" '{ print  $7048 }' ...
I want to submit it using os.system(cmd),
but I cannot find the right way to write the code in a python string with all the special characters.
The following is  my latest try:
 cmd = " awk -v  FPAT=\"([^,]+)|(\\""[^\\""]+\\"")""  ' {{ print   %s  }} '  %s  > %s" .format(c,input,output)
and I get the following result:
' awk -v  FPAT="([^,]+)|(\\[^\\]+\\)  \' { print   %s  } \'  %s  > %s'
Can someone please help me?
 
     
    