![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Splitting input files into multiple files through AWK command | arund_01 | Shell Programming and Scripting | 3 | 05-13-2008 09:17 AM |
| splitting the files | sharif | UNIX for Advanced & Expert Users | 9 | 02-13-2008 06:38 AM |
| Splitting the console into 2 "parts" | jonas.gabriel | High Level Programming | 2 | 06-12-2007 09:31 AM |
| comparing Huge Files - Performance is very bad | madhukalyan | UNIX for Dummies Questions & Answers | 5 | 10-10-2006 10:58 PM |
| Huge (repeated Entry) text files | axl | SUN Solaris | 4 | 07-16-2004 07:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Splitting huge XML Files into fixsized wellformed parts
Hi,
I need to split xml-files with sizes greater than 2 gb into smaler chunks. As I dont want to end up with billions of files, I want those splitted files to have configurable sizes like 250 MB. Each file should be well formed having an exact copy of the header (and footer as the closing of the header) from the original file. Forthermore, a table should be generated were I can see, that the File X is seperated into Part N with timestamp: The Original XML-Files look like this: <?xml ...> <Headerelement with some infos to be copied 1to1> <OfferInfo> <OfferID></OfferID> ... </OfferInfo> <OfferInfo> <OfferID></OfferID> ... </OfferInfo> <OfferInfo> <OfferID></OfferID> ... </OfferInfo> </Headerelement> ------------------------- Protocol Table: Orginalfilename|Name of PartN|Size of PartN|Timestamp ------------------------- All in all I ended up with reading the XML processing docus of gawk, but as it seems I am lacking some deeper programming skills.. Could someone please help? Thx Malapha |
| Sponsored Links | ||
|
|