Created
December 22, 2018 14:03
-
-
Save avian2/e3968bf933212ee561410b15495e626f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from_string = sys.argv[1] | |
to_string = sys.argv[2] | |
with open("input.txt") as f: | |
text = f.read() | |
text = text.replace(from_string, to_string) | |
with open("output.txt", "w") as f: | |
f.write(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment