diff options
author | terminaldweller <thabogre@gmail.com> | 2021-11-19 15:42:04 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-11-19 15:42:04 +0000 |
commit | 9076bc3cf559a89cc667ef3004540f20aae56554 (patch) | |
tree | ea9625baefab903be2a1ee574ee5690bc9cbdb6b /git | |
parent | updates for gdbinit (diff) | |
download | scripts-9076bc3cf559a89cc667ef3004540f20aae56554.tar.gz scripts-9076bc3cf559a89cc667ef3004540f20aae56554.zip |
more updates
Diffstat (limited to 'git')
-rwxr-xr-x | git/wipe_irssi_passwords | 18 |
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*.*//' |