in reply to Help spliting file into chunks
while there's a next line extract the ID check if ID matches the previous ID if not: set previous ID to current ID increment a counter if counter > 100 close current output file open a new output file reset counter write the line to the current output file.
Try to write that in perl you can almost translate it directly. If you have troubles with a specific step, shows us what you've tried and where your problem is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help spliting file into chunks
by ikegami (Patriarch) on Jul 28, 2009 at 16:03 UTC |