13 lines
227 B
Python
13 lines
227 B
Python
|
import glob
|
||
|
import sys
|
||
|
|
||
|
from voussoirkit import pipeable
|
||
|
|
||
|
|
||
|
lines = pipeable.input(sys.argv[1])
|
||
|
replace_from = sys.argv[2]
|
||
|
replace_to = sys.argv[3]
|
||
|
|
||
|
for line in lines:
|
||
|
pipeable.output(line.replace(replace_from, replace_to))
|