#!/bin/bash while [ 1 ]; do clear netstat | grep -v "localhost:" sleep 1 done