Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-users: Re: [Wireshark-users] Tshark and using display filters

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 04 May 2007 13:18:44 -0700

Irakli Natshvlishvili wrote:

Platform is XP with SP2. What I'm doing wrong?

You're assuming that you don't have to quote a read filter. It's an argument to the "-R" flag, so it has to be one shell-level token, so if it contains token separators such as spaces, it needs to be quoted.

Try

	tshark -r all.cap -w filtered.cap -R "udp contains 100"

or, if "100" has to be quoted from TShark's point of view, you'll have to nest quotes (I don't know how that's done with the standard Windows command line, but on UN*X shells, even if you're running them on Windows

	tshark -r all.cap -w filtered.cap -R "udp contains \"100\""

should do).
	

  • Follow-Ups:
    • Re: [Wireshark-users] Tshark and using display filters
      • From: Irakli Natshvlishvili
  • References:
    • [Wireshark-users] Tshark and using display filters
      • From: Irakli Natshvlishvili
  • Prev by Date: [Wireshark-users] Tshark and using display filters
  • Next by Date: Re: [Wireshark-users] Wireshark and 2GB capture files
  • Previous by thread: [Wireshark-users] Tshark and using display filters
  • Next by thread: Re: [Wireshark-users] Tshark and using display filters
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation