redact()

Replace anything secret-shaped in a shell command line with [REDACTED].

Usage

redact(line)