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

Following command outputs the "media.type" content as a hex string in my csv file. Is there a way to write this as ascii characters in the csv file?

tshark -r xyz.pcap -T fields -e frame.number -e frame.time -e media.type -E header=y -E separator=, -E quote=d > abc.csv

Thanks.

asked 17 Jan '16, 17:40

hvs's gravatar image

hvs
6446
accept rate: 0%


Is there a way to write this as ascii characters in the csv file?

Unfortunately, there isn't any; for some not-immediately-obvious reason, the "media.type" field has the type "bytes" rather than "string", meaning it gets dumped as a hex value.

Please file a bug on this at the Wireshark Bugzilla.

permanent link

answered 17 Jan '16, 19:33

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

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:

×832
×40

question asked: 17 Jan '16, 17:40

question was seen: 1,109 times

last updated: 17 Jan '16, 19:33

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