I display the TCP stream of an already finished capture written in out.pcap
with
END=$(tshark -r out.pcap -T fields -e tcp.stream | sort -n | tail -1);
for ((i=0;i<=END;i++));
do
echo $i; tshark -r out.pcap -qz follow,tcp,ascii,$i
done
How can I display newly terminated TCP streams in this fashion along the packet capture?