#!/bin/bash
rig0="192.168.1.99"
port="4028"
echo -n "switchpool|$1" | nc "$rig0" "$port" ;echo "$rig0"
add as many rig#="Ip Address of Rig" and copy and edit the echo line with rig# as needed
Instead of hard coding a separate echo line for each rig, you can do something like this:
#!/bin/bash
#Add rig addresses to the RIGS variable, one per line
RIGS="192.168.1.99
192.168.1.100
192.168.1.101"
# split on newline
IFS="
"
port="4028"
for rig in $RIGS; do
echo -n "switchpool|$1" | nc "$rig" "$port" ;echo "$rig"
done