0

How to call sed command from python on windows?

On Linux, I can do it like this:

import subprocess
subprocess.call("sed command")

How to do it on windows?

There is no sed on windows.

zwl1619
  • 4,002
  • 14
  • 54
  • 110
  • If it is an option to install a sed like command - there are some listed here: https://stackoverflow.com/questions/127318/is-there-any-sed-like-utility-for-cmd-exe the alternative may be to rewrite the transformation that you are doing in sed in python – Ian Kenney Aug 29 '17 at 05:04
  • 1
    This sounds less like a question about python and more like a question about how to get `sed` on windows. – SethMMorton Aug 29 '17 at 05:31

0 Answers0