Here’s the terrible hack of a bash command (not script actually)
pbpaste | perl -pe 's/\n/%0A/m' | (read pastebuff; curl -X POST -H 'Content-type: application/json' --data "{\"content\": \"$pastebuff\"}" https://hooks.zapier.com/hooks/catch/xxxx/xxxx/)
Here’s the terrible hack of a bash command (not script actually)