Tshark output file problem, saving to csv or txt
How to save tshark output to files? I need to capture traffic after every 5 second and save it to csv or txt file. I try this code
tshark -i 2 -T fields -e frame.number-e frame.time_delta -e frame.len -b duration:5 -E header=y -E quote=d -E occurrence=f -w file.txt > test.txt
I need to create a lot of files but using -w looks bad.