bash tcp connections
Bash, if compiled accordingly, has pseudo-device files that allow you to open TCP connections:
$ # /dev/tcp/$host/$port
$ echo foo > /dev/tcp/127.0.0.1/57005
Of course, nc
is a more functional alternative, but this is an
interesting bash feature nonetheless.