a neat little bash trick.
Where previously I would have written:
echo foo | nc somehost 666
Now I know that I can do it purely in bash, with:
echo foo >/dev/tcp/somehost/666
There’s also a corresponding /dev/udp if tcp isn’t your thing.
Neat!
a neat little bash trick.
Where previously I would have written:
echo foo | nc somehost 666
Now I know that I can do it purely in bash, with:
echo foo >/dev/tcp/somehost/666
There’s also a corresponding /dev/udp if tcp isn’t your thing.
Neat!