I am writing a p2p chat app in bash.
Here's the code:

#!/bin/bash

agt= 'cat ipt.txt'
read name
cat ipt.txt |
for i in agt; do
   echo $name | nc $i 667

done

(it doesnt work, please send help to [email protected])