#!/bin/sh
for file in `\find . -name '*.pcapng'`; do
tshark -r $file -Y "wlan.fcs_bad == 0 && wlan.ta == 00:00:00:00:00:00" -T fields -E separator’,’ -e frame.time_relative -e wlan.seq —e tcp.seq -e radiotap.datarate -e radiotap.mcs.index -e radiotap.channel.type > $file-1.csv
tshark -r $file -Y "wlan.fcs_bad == 0 && wlan.ra == 00:00:00:00:00:00" -T fields -E separator’,’ -e frame.time_relative -e wlan.seq -e tcp.seq -e radiotap.datarate -e radiotap.mcs.index -e radiotap.channel.type > $file-2.csv
done
read wait
findコマンドを使ってみました。