-3

I need to embed unix commands in python script and need a piece of code to perform the below: echo $i |awk -F ' ' '{print $9' '$6' '$7' '$8}'

1 Answers1

0

in python you can run shell commands like this:

from subprocess import call
call(["ls", "-l"])
János Farkas
  • 453
  • 5
  • 14