what i'm trying to achieve is to sniff the traffic over the loopback and writing every packet payload on its own file where the file name is the tcp.time_relative
with:
sudo tshark -i lo -T fields -e tcp.time_relative -e tcp.payload
so right now i can get the two fields i need what is crucial is a way to write each tcp.payload to a file where tcp.time_relative is the file name. If someone knows some usefull tshark commands or a way to script this would be really nice.