Tracking PCAP file sources?

for i in .pcap
do
mkdir ${i%%.
};
cd ${%%.*}
bro here
cd …
done