Ask Your Question

Revision history [back]

convert cap to csv keeping field's leading zeros

Hi everybody, I'm converting a cap file to csv file using the following line

"C:\Program Files\Wireshark\tshark.exe" -r "C:\Users\User\Desktop\test.cap" -T fields -e tcap.tid -E header=y -E separator=; > "C:\Users\User\Desktop\test2.csv"

The csv file is generated, but the tcap.tid values don't have the leading zeros as in the cap file. How can I fix this issue?

convert cap to csv keeping field's leading zeros

Hi everybody, I'm converting a cap file to csv file using the following line

"C:\Program Files\Wireshark\tshark.exe" -r "C:\Users\User\Desktop\test.cap" -T fields   -e tcap.tid -E header=y -E separator=; >  "C:\Users\User\Desktop\test2.csv"

"C:\Users\User\Desktop\test2.csv"

The csv file is generated, but the tcap.tid values don't have the leading zeros as in the cap file. How can I fix this issue?