1 | initial version |
You didn't say what OS you are using. If you are using a *nix system with something like bash or zsh and your input filename is the variable you are looping across you should be able to pipe your tshark output to sed to prepend the filename to the output. Such as:
tshark -r "$i" -T fields -e frame.number -e frame.time | sed "s/^/$i: /"