[nylug-talk] Cute bash feature (redirect-network)

Ron Guerin ron at vnetworx.net
Wed Jun 13 22:52:00 EDT 2007


Michael Bacarella wrote:
> $ cat < /dev/tcp/localhost/22
> SSH-1.99-OpenSSH_3.9p1
> 
> I had no idea bash could do this until I saw it in a shell script.

It has been around a while, but it's not compiled in for everyone by
their distros (for example, those based on Debian).

- Ron


More information about the nylug-talk mailing list