0

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

Community
  • 1
  • 1
user2512053
  • 79
  • 4
  • 12

0 Answers0