This commit is contained in:
bluepython508
2024-01-22 10:56:12 +00:00
parent d320a956f8
commit dc42625cf1
20 changed files with 293 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
#! /usr/bin/env python3
import sys, re
redacted = re.compile(f"({'|'.join([s.strip() for s in open(sys.argv[1])])})")
for line in sys.stdin:
print(redacted.sub(lambda m: '*' * len(m.group(0)), line), end='')