I just wrote a shell one-liner that uses 3 different shell interpreters. 🙈
powershell -command Get-Clipboard | cat | jq -r .document | base64 -d > output.pdf 2> /dev/null; start output.pdf
It is running in bash in MinGW. The only way to get the clipboard content is to use powershell. And in the end I want to open the document, which I do by calling start, which opens a new cmd prompt and then calls the default application for PDF.
Conversation
Notices
-
Embed this notice
Sigma (sigmasternchen@comfy.social)'s status on Monday, 15-Apr-2024 17:42:44 JST Sigma
- Puniko ? likes this.