Pull TCP port numbers from Wireshark files

Hello,
I have about 50 wireshark capture files and I need to find out what TCP ports are being used. I could go thru each file and do a Statistics>Conversations>TCP>Copy>Paste to text doc but this is a little tedious. Does anyone know of a easier way to accomplish this?

Thanks

Hello,

tshark.exe -r <your_file>.pcap -T fields -e tcp.srcport -e tcp.dstport

Olivier

Thanks, I’ll give it a try.