blob: 40fa7ca488d27dfd69a492a98d7d379b01afaf01 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env python3
import sys
import os
with open(sys.argv[1]) as fh:
content = fh.read().replace("{NAME}", sys.argv[2])
with open(os.path.join(sys.argv[3]), 'w', errors='replace') as fh:
fh.write(content)
|