4 ms·
On macOS you can use “pbcopy” and “pbpaste” to manipulate or read from the clipboard. For instance, format the JSON in your clipboard: pbpaste | jq .
by whalesalad 6y ago
On macOS you can use “pbcopy” and “pbpaste” to manipulate or read from the clipboard.
For instance, format the JSON in your clipboard: pbpaste | jq .
- tyingq 6y agoxclip and xsel for X11: xclip -o | jq
- dijit 6y agoOr wl-copy / wl-paste on wayland.
- easton 6y agoIf you’re on Windows, Set-Clipboard in PowerShell does this too and is super handy.
- camel_Snake 6y agojq is lovely. python3 has a json formatter built in as well pbpaste | python3 -m json.tool
- laacz 6y agoclip.exe when on WSL (alias to pbcopy, if Mac way is the way).