socat is the swiss army knife that just about lets you forget everything's not a file:
$ socat readline: file:/dev/ttyS0,crnl,crtscts,echo=0 # interact with a serial port
$ socat readline: tcp:google.com:80 # interact with a tcp port
$ socat tcp-listen:1234,fork exec:cat # a forking cat service
http://www.macports.org/
apt-cache search --names-only <name>
less -S
free -m
time
host
Some of us have moved away from some of these arcane methods of interaction.
They call it progress you know...
:-)