summaryrefslogtreecommitdiff
path: root/data/pyreplace.py
diff options
context:
space:
mode:
authorpux <pux@raumdock.pux.dom>2023-01-07 14:17:56 +0100
committerpux <pux@raumdock.pux.dom>2023-01-07 14:17:56 +0100
commit6a0dd29d364844b24f1b6dc4beb2e20b5a634ac2 (patch)
treed84e36efce0fa74989c4b31978069dc8f81fcc54 /data/pyreplace.py
parent407572b5f49d89baad3dd0ef3d50b89a3b1ae451 (diff)
downloadmuckedout-6a0dd29d364844b24f1b6dc4beb2e20b5a634ac2.tar.gz
muckedout-6a0dd29d364844b24f1b6dc4beb2e20b5a634ac2.tar.bz2
muckedout-6a0dd29d364844b24f1b6dc4beb2e20b5a634ac2.zip
update from pub-docs
Diffstat (limited to 'data/pyreplace.py')
-rwxr-xr-xdata/pyreplace.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/pyreplace.py b/data/pyreplace.py
new file mode 100755
index 0000000..71e970e
--- /dev/null
+++ b/data/pyreplace.py
@@ -0,0 +1,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