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

is there tshark format config file? or setting?

0

I'm use tshark to read .pcap in linux

i want result text to insert \t(tab delimiter of coumn) as same command

"tshark -tad - n -r xxxx.pcap"

now

result text{

2012-12-05 09:39:20.770766 xxxxxx -> xxxxx LLMNR 86 Standard query A isatap

}

want result text{

1 2012-12-05 09:39:20.770766 xxxxxx -> xxxxx LLMNR 86 Standard query A isatap

}

Is there any way without change command ?

plz help me

asked 04 Dec '12, 17:17

doomgreen's gravatar image

doomgreen
1111
accept rate: 0%


One Answer:

0

If you just want the tabs instead of the spaces, pipe the output of tshark to sed/tr/awk (whatever you prefer) and replace the spaces with a tab.

Example for tr:

tshark -tad -n -r input.cap | tr ' ' \\t > output.txt

Regards
Kurt

answered 05 Dec '12, 11:13

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 05 Dec '12, 12:45