summaryrefslogtreecommitdiff
path: root/data/pyreplace.py
blob: 71e970e71dfd7cee711cf8ed8d4194473e619c08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/env python3

import sys

if __name__ == '__main__':
    if len(sys.argv) < 3:
        sys.exit()

    data = []
    with open(sys.argv[3], 'r+') as file:
        data = file.read()
        data = data.replace(sys.argv[1], sys.argv[2])
        file.close()
    with open(sys.argv[3], 'w') as filew:
        filew.write(data)
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa