From 9076bc3cf559a89cc667ef3004540f20aae56554 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 19 Nov 2021 19:12:04 +0330 Subject: more updates --- git/wipe_irssi_passwords | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'git') 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*.*//' -- cgit v1.2.3