Skip to content

Instantly share code, notes, and snippets.

@maczniak
Created July 13, 2016 09:57
Show Gist options
  • Save maczniak/5c290edd729d734a5e829563835bac3d to your computer and use it in GitHub Desktop.
Save maczniak/5c290edd729d734a5e829563835bac3d to your computer and use it in GitHub Desktop.
script collection
# from
while true; do sleep 1; date; netstat -an | grep 5280; done
# to
while true; do sleep 1; date; netstat -an | grep 5280 > /tmp/$$.new; diff /tmp/$$.old /tmp/$$.new; mv /tmp/$$.new /tmp/$$.old; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment