Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Multiple input files

From: Christopher Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Thu, 5 Sep 2013 13:26:48 +0000 (UTC)
Dario Lombardo <dario.lombardo.ml@...> writes:

> Hi listI was trying to change the code of tshark to support multiple -r
switches. The aim is to have many input files and one output file. Before
getting mad in changing it, I was wondering if it makes sense or not, and if
it was addressed before in some way.
> 
> An example of use of it:
> 
> tshark -r input1.pcap -r input2.pcap -r input3.pcap -Y
"dns.qry.name contains google" -o google.pcapThanks for your suggestions.

Why not just pipe the output of mergecap[1] to tshark?

[1]: http://www.wireshark.org/docs/man-pages/mergecap.html