aboutsummaryrefslogtreecommitdiffstats
path: root/git/wipe_irssi_passwords
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-19 15:42:04 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-19 15:42:04 +0000
commit9076bc3cf559a89cc667ef3004540f20aae56554 (patch)
treeea9625baefab903be2a1ee574ee5690bc9cbdb6b /git/wipe_irssi_passwords
parentupdates for gdbinit (diff)
downloadscripts-9076bc3cf559a89cc667ef3004540f20aae56554.tar.gz
scripts-9076bc3cf559a89cc667ef3004540f20aae56554.zip
more updates
Diffstat (limited to '')
-rwxr-xr-xgit/wipe_irssi_passwords18
1 files changed, 2 insertions, 16 deletions
diff --git a/git/wipe_irssi_passwords b/git/wipe_irssi_passwords
index 69da189..606473c 100755
--- a/git/wipe_irssi_passwords
+++ b/git/wipe_irssi_passwords
@@ -1,16 +1,2 @@
-#!/usr/bin/env python3
-# _*_ coding=utf-8 _*_
-
-import re
-
-
-def main():
- with open("/home/devi/.irssi/config", "r") as config_file:
- lines = config_file.readlines()
- for line in lines:
- print(re.sub("password\\s*=\\s*\"(.*)\"",
- "password=\"\"", line), end="")
-
-
-if __name__ == "__main__":
- main()
+#!/usr/bin/env sh
+sed -e 's/.*password\s*=\s*.*//'