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

How to use “;” in tshark command lines?

0

How to deal with the command :

tshark -Y "diameter.Session-Id == "pbugw_8.robi.com.bd;2699435848;4206;80502" "

The trouble is in "tshark: ";" was unexpected in this context."

asked 20 Jul '16, 05:09

neil_hao's gravatar image

neil_hao
26101114
accept rate: 0%

edited 20 Jul '16, 08:02

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142


One Answer:

2

Apply backslashes to escape command line interpretation of special characters, " and ;

tshark -Y "diameter.Session-Id == \"pbugw_8.robi.com.bd\;2699435848\;4206;80502\" "

answered 20 Jul '16, 05:19

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

thanks jaap, it's work well;

(20 Jul '16, 05:33) neil_hao