From b1b8fb265ad4c46b458e03240ab3c942ae474d63 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 19 Jun 2021 02:52:16 +0430 Subject: so many things --- git/wipe_irssi_passwords | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 git/wipe_irssi_passwords (limited to 'git/wipe_irssi_passwords') diff --git a/git/wipe_irssi_passwords b/git/wipe_irssi_passwords new file mode 100755 index 0000000..26e9d58 --- /dev/null +++ b/git/wipe_irssi_passwords @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +# _*_ coding=utf-8 _*_ + +import re + + +def main(): + with open("./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() -- cgit v1.2.3