#!/bin/sh readonly BASE_DIR="$(dirname $(realpath $0))" readonly FLOW_DIR="$BASE_DIR/flows/" readonly PCAP_DIR="$BASE_DIR/packets/" readonly PCAPS="$PCAP_DIR/*.pcap" readonly SEPERATOR="$BASE_DIR/../src/flow-seperator/flow-seperator" mkdir "$FLOW_DIR" cd "$FLOW_DIR" "$SEPERATOR" $PCAPS cd -