I want to implement the loop suggested as a solution in this question.(Send text file, line by line, with netcat).
while read x; do echo "$x" | nc host port; done < textfile
However, I have not created a script before. If someone knows how to make that simple script it would be a great help in getting me started. There are many examples but if I could see what I need done and reverse from there it would save a lot of time.
Thanks