gigq on Nostr: One liner using nostcat (https://github.com/blakejakopovic/nostcat) and jq ...
One liner using nostcat (https://github.com/blakejakopovic/nostcat) and jq (https://stedolan.github.io/jq/) to copy events from one relay to another. I’m using this to copy events from the people I follow to my own personal relay but you could also use it to broadcast your events to other public relays.
echo '["REQ", "CID", {"authors": ["219b82fd61787fb11b557cb6ba972ae475645bebd11a49b142819fe55bced64c"]]}]' | nostcat -u wss://relay.damus.io | jq -c 'del(.[1])' | nostcat --stream ws://localhost
echo '["REQ", "CID", {"authors": ["219b82fd61787fb11b557cb6ba972ae475645bebd11a49b142819fe55bced64c"]]}]' | nostcat -u wss://relay.damus.io | jq -c 'del(.[1])' | nostcat --stream ws://localhost