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

How to pipe tshark output to text file

0

I want to pipe the output of following command to a text file for further processing.Please let me know how to do the same..

tshark -r <mypcap> -Tfields -e ip.src -e ip.dst

10.10.10.10 1.1.1.1

2.2.2.2 3.3.3.3

16.1.1.1 11.11.11.1

I want to pipe this output to a text file what field to add to the command

Thanks

asked 21 Jun '13, 18:33

krishnayeddula's gravatar image

krishnayeddula
629354148
accept rate: 6%


One Answer:

2

For either Linux or Windows, just add ">" to the end of the command and name a file to save it to: 'tshark -r {file.pcap} -Tfields -e ip.src -e ip.dst > file.txt'

answered 21 Jun '13, 18:47

Quadratic's gravatar image

Quadratic
1.9k6928
accept rate: 13%

edited 21 Jun '13, 18:49