#!/bin/sh # portuser port... # # This takes a list of port numbers and tells you who is doing what # on each port. There is no default port number. for p do echo Port $p: netstat -Nnlp | grep "\<$p\>" done