Skip to content

Instantly share code, notes, and snippets.

parrot:
Wrap EFL gui libs
curses
steme
macros
methods
classes
exceptions
perl6:
web
[sweeks@kweh doten]$ r build.pl
This should only print once per object
This should only print once per object
#!/bin/bash
FILE=/tmp/conns.txt
TARGET=/tmp/services.dot
tshark -r class1.dump tcp.flags == 2 | awk '{print $3 " " $5 " " $9}' | sed 's/10.100.0./station/g' | grep -F ' station' | sort -u > $FILE
HOSTS="$(cut -d' ' -f1 $FILE | sort -u)"
echo 'digraph hosts {
splines=true;
node [style=filled];
' > $TARGET