Example use:
cd "$( cygpath -u "$APPDATA" )/VanDyke/Config/Sessions/" grep -rs 'S:"Password V2"=[0-9]' . | perl -nle 'if (/^(.*?):.*?=(\d\d):(.*)/) { print $1; system "securecrt_cipher.py", "dec", "-2", "--prefix", $2, $3; print "";}' # If you need the usernames, you can get that separately: grep -rs 'S:"Username"=.' .
The ANSI escape sequences include a facility to send data to the printer. [2] This seems to be rarely used. However, SecureCRT can be configured to send this data to a text file.
TODO
: I haven't tried this yet, myself.