Is it possible to use sed and awk kind of commands in python that works on windows operating system? For Unix operating system we can import os package and use os.system to perform any unix operations. I want the same kind of operations to be performed in Windows operating system. Can anyone please let me know if there is any such package that can be used in python.
P.S. I want to perform such actions as part of .py script instead of having them executed in command lines as in IPython.
As an example, I want this kind of CODE to be executed in Windows operating system.
import os
os.system("sed -ie 's/ow/aagh/g' ~/temp.txt")