> I understand your requirement and it sounds like a great > utility. Many a > time I've been stuck in a testbed with a large trace file and > a stack of > floppies, and I spend far too much time fluffing about with > WinZip. Short > of adding new features to editcap.c (which isn't too > insurmountable a task > if you know c), I can suggest that you make better use of editcap. > > This version of the split utility will mean that your big > trace file will > only need to be read log2(n) times rather than log2(n) times. > You'll need to > tweak the "copy" to "cp" if your lucky enough to use a real operating > system. :-)
[code snipped] I am indeed blessed with a few systems that use 'cp'. :-) Thanks for the code snippet. I'm trying various ways of doing this. If I get this algorithm working here, shall I repost the complete version back to the list? --J
