Ask Your Question
0

Break a 140MB file to smaller files

asked 2020-01-03 18:51:06 +0000

jj gravatar image

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-01-03 20:00:46 +0000

Bob Jones gravatar image

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/

edit flag offensive delete link more
0

answered 2020-02-02 22:47:13 +0000

kaos gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-01-03 18:51:06 +0000

Seen: 319 times

Last updated: Feb 02 '20