I am trying to run the following command via my python script, to unzip a bunch of csv.gz
files
os.system("find /upload/ -name '*.csv.gz' -print -exec gzip -d {} \") <- Syntax error : EOL while scanning string literal.
#When I try to escape it
os.system("find /upload/ -name '*.csv.gz' -print -exec gzip -d {} \\") <- find: missing parameter for « -exec »
How can I execute find /upload/ -name '*.csv.gz' -print -exec gzip -d {} \
via os.system?
Is there any alternative to os.system("find /upload/ -name '*.csv.gz' -print0 | xargs -0 -n1 gzip -d")
I could use?