BBS: TELESC.NET.BR
Assunto: looking to just list "string" in gpg output
De: August Abolins
Data: Sat, 17 Jan 2026 22:07:00 -0500
-----------------------------------------------------------
Hi Maurice...
MK>> If you have 'tee' handy then try this;
MK>> H:/temp $ { gpg ppp.txt | tee NUL2; } &> NUL1 ; grep \" NUL2
MK>> 'tee' will only output stdout to NUL2. Both stderr and stdout will get
MK>> written to NUL1 which if you don't need it could be redirected to
MK>> /dev/null or whatever your sh enviroment uses to represent the void. Het
MK>> leven is goed, Maurice
A> No.. I want to parse stderr that gpg produces.
I got it!
H:\temp>gpg --batch --yes -d ppp.txt > NUL 2> NUL2 & busybox grep \" NUL2
"seanrima-gpgmail "
"Philipe "
"Phil Lejman "
"Paul Kapaldo"
or.. without busybox:
H:\temp>gpg --batch --yes -d ppp.txt > NUL 2> NUL2 & findstr /C:""" NUL2
"seanrima-gpgmail "
"Philipe "
"Phil Lejman "
"Paul Kapaldo"
I wanted to avoid any and all prompts for either the gpg passphrase and the
file overwrite prompt so that I can use this in a batch/script for any
updated ppp.txt that I need.
--
../|ug
--- OpenXP 5.0.64
* Origin: Got Mobile? This echo = https://t.me/+RLI5gLJrHo6IIuzL (2:221/1.58)
-----------------------------------------------------------
[Voltar]