Is there any command line tool to extract the n th packet from a pcap file?

I am on CentOS 6.5.

Thanks in advance.

  • Extract it and print it out, or extract it into a new pcap file? – user137177 Nov 6 '14 at 23:37


tshark -r file.pcap -R "frame.number == n"

Hope this was helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.