Not only bash but some of the more readable shell script I've seen.
OP, if you're reading this, is that an idiomatic style or did you learn the style from some well known source?
I don't know what you refer to when you talk about the style but it's just how I write code; I try to keep it simple.
Some of the simplicity of the code is possible because it's bash, which both means that I can skip parsing the input (since bash already is made for doing that) and use existing programs like curl and nc.