First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Break a 140MB file to smaller files

I have a 140MB trace file and I'd like to break it down to several 30Mb file so I can attached to my email. How do I do that? Thx

jj's avatar
1
jj
asked 2020-01-03 18:51:06 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

This discussion has some different ways:

https://serverfault.com/questions/131872/how-to-split-a-pcap-file-into-a-set-of-smaller-ones

Everyone has their preference, but I prefer:

tcpdump -r old_file -w new_files -C 10

Where C is in MB. Another good discussion on the topic using editcap:

https://blog.packet-foo.com/2018/07/pcap-split-and-merge/

Bob Jones's avatar
1.5k
Bob Jones
answered 2020-01-03 20:00:46 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

even 30MB would be too much for most users because the binary files are being transfered using Base64 encoding which will make your 30MB file like 40MB+ mail - an easy way to fill up user's quota.

Use dropbox/wetransfer etc instead - your recipient will thank you for saving time by avoiding mergecap'ing

kaos's avatar
13
kaos
answered 2020-02-02 22:47:13 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer