August Abolins wrote to All <=-
What's the best way to get the output of this:
H:\temp>gpg ppp.txt
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created 2024-12-24
"seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created 2025-06-04
"Philipe <philipe_rm1@hotmail.com>"
gpg: encrypted with 2048-bit RSA key, ID 6C0F8C1358D82C2D, created 2010-10-18
"Phil Lejman <phil.lejman@gmail.com>"
gpg: encrypted with ECDH key, ID 740397B0612F2FC7
gpg: encrypted with 256-bit ECDH key, ID C42D963F2DAC8CC7, created 2020-10-17
"Paul Kapaldo"
..to just produce this:
"seanrima-gpgmail <thecivvie@gmail.com>"
"Philipe <philipe_rm1@hotmail.com>"
"Phil Lejman <phil.lejman@gmail.com>"
"Paul Kapaldo"
???
I'd use: gpg ppp.txt | grep '"'
On Linux, at least. Now that I look again, it looks like you're using Windoze, so not sure how to do it there.
I'd use: gpg ppp.txt | grep '"'
On Linux, at least. Now that I look again, it looks like
you're using Windoze, so not sure how to do it there.
If busybox is a good emulation of linux, this did not work:
H:\temp>busybox sh
H:/temp $ gpg ppp.txt | grep ""
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created 2024-12-24 "seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created 2025-06-04 "Philipe <philipe_rm1@hotmail.com>"
I'd use: gpg ppp.txt | grep '"'
On Linux, at least. Now that I look again, it looks like
you're using Windoze, so not sure how to do it there.
Sorry, I missed the " enclosed in ' quotes; however, same
result:
H:\temp>busybox sh
H:/temp $ gpg ppp.txt | grep '"'
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created 2024-12-24 "seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created 2025-06-04 "Philipe <philipe_rm1@hotmail.com>"
August Abolins wrote to Dan Clough <=-
I'd use: gpg ppp.txt | grep '"'
On Linux, at least. Now that I look again, it looks like
you're using Windoze, so not sure how to do it there.
Update BELOW..
If busybox is a good emulation of linux, this did not work:
H:\temp>busybox sh
H:/temp $ gpg ppp.txt | grep ""
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created 2024-12-24 "seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created 2025-06-04 "Philipe <philipe_rm1@hotmail.com>"
Sorry, I missed the " enclosed in ' quotes; however, same
result:
H:\temp>busybox sh
H:/temp $ gpg ppp.txt | grep '"'
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created 2024-12-24
"seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created 2025-06-04
"Philipe <philipe_rm1@hotmail.com>"
H:\temp>busybox sh
H:/temp $ gpg ppp.txt | grep '"'
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created
2024-12-24
"seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created
2025-06-04
"Philipe <philipe_rm1@hotmail.com>"
I guess busybox *isn't* a good emulation of Linux. It
works as expected on actual Linux. Maybe a Windows user
will chime in here.
H:/temp $ gpg > NUL -d ppp.txt 2> NUL2 ; grep \" NUL2
Hej August!
H:/temp $ gpg > NUL -d ppp.txt 2> NUL2 ; grep \" NUL2If you have 'tee' handy then try this;
H:/temp $ { gpg ppp.txt | tee NUL2; } &> NUL1 ; grep \" NUL2
'tee' will only output stdout to NUL2. Both stderr and stdout will get written to NUL1 which if you don't need it could be redirected to /dev/null or whatever your sh enviroment uses to represent the void.
Het leven is goed,
Maurice
o- o- -o o- o- -o o- -o o- o- -o -o o- -o -o -o
/) /) (\ /) /) (\ /) (\ /) /) (\ (\ /) (\ (\ (\
^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^
... Hwæt bið betst and wyrst? Ic ðe secge, mannes word.
What is the best and the worst thing? I tell you, man's word.
If you have 'tee' handy then try this;
H:/temp $ { gpg ppp.txt | tee NUL2; } &> NUL1 ; grep \" NUL2
'tee' will only output stdout to NUL2. Both stderr and stdout will get
written to NUL1 which if you don't need it could be redirected to
/dev/null or whatever your sh enviroment uses to represent the void. Het
leven is goed, Maurice
No.. I want to parse stderr that gpg produces.
August Abolins wrote to Dan Clough <=-
H:\temp>busybox sh
H:/temp $ gpg ppp.txt | grep '"'
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID 34C35AA4CB59468A, created
2024-12-24
"seanrima-gpgmail <thecivvie@gmail.com>"
gpg: encrypted with ECDH key, ID FB7964717AABB346
gpg: encrypted with 256-bit ECDH key, ID DB93C9CDECB10521, created
2025-06-04
"Philipe <philipe_rm1@hotmail.com>"
I guess busybox *isn't* a good emulation of Linux. It
works as expected on actual Linux. Maybe a Windows user
will chime in here.
Do you have an actual gpg output to show me?
You're forgetting that only the decrypted part goes to stdout,
and gpg errors and info go to stderr.
No.. I want to parse stderr that gpg produces.
No.. I want to parse stderr that gpg produces.
Then you're on the right track except I would suggest changing NUL to something else, say OUT and BOTH.
I'm reading that creating a ramdisk in linux is fairly simple and a
common feature.
I'm reading that creating a ramdisk in linux is fairly simple and a
common feature.
# mount -t tmpfs -o size=8g none /dev/lfs
creates a 8G ramdisk mounted on /dev/lfs.
# umount -v /dev/lfs
wipes it out.
What version of busybox do you have? That looks to be your salvation.
BusyBox v1.37.0
So.. no tmpfs.
However I see enough to make groovy things happen not unlike what you're doing with gpg. I have to wonder if mingw32's iconv is up to the task.
In your busybox env try 'iconv -l' and see what shows up. That should provide you a list of supported codepages. See if you can top this
list;
437//
500//
500V1//
850//
busybox's is not as long
UTF-8
UTF8
| Sysop: | Drillsar |
|---|---|
| Location: | Livingston, NJ |
| Users: | 5 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 111:47:28 |
| Calls: | 16 |
| Messages: | 15,287 |