This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi I am using wireshark version 1.0.2 in unix.I Want to convert pcap to text file using command "tshark -r filename.pcap -O tcp -x > filename.txt",but the command is not working for me.

Could you please tell me what command I should give to make it work in wireshark 1.0.2 version.

Thanks Ram

asked 09 Sep '14, 22:59

ramkumarbarai's gravatar image

ramkumarbarai
1222
accept rate: 0%


The -O option was only introduced in Wireshark 1.6.0 so you can't use that in version 1.0.2 (assuming that wasn't a typo).

In 1.0.2 you'll have to do something like tshark -r filename.pcap -V -x > filename.txt. "-V" will decode/expand all the protocol layers, though. If you want just TCP to be expanded you'll need to upgrade.

permanent link

answered 10 Sep '14, 07:47

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×37

question asked: 09 Sep '14, 22:59

question was seen: 2,171 times

last updated: 10 Sep '14, 07:47

p​o​w​e​r​e​d by O​S​Q​A