2019-06-12 05:41:31 +00:00
|
|
|
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:
|
2021-05-25 08:35:46 +00:00
|
|
|
pipeable.stdout(line.replace(replace_from, replace_to))
|