The following command sends the 4-byte packet ‘\x01\x02\x03\x04’ to 127.0.0.1 on port 2222
echo -n -e '\x01\x02\x03\x04' > /dev/udp/127.0.0.1/2222
The following command sends the 4-byte packet ‘\x01\x02\x03\x04’ to 127.0.0.1 on port 2222
echo -n -e '\x01\x02\x03\x04' > /dev/udp/127.0.0.1/2222