I was a bit bored, and this works for me...

http://pastebin.com/srPxwvSm

Chris-

On Thu, Jan 6, 2011 at 4:12 PM, Peter Miller <[email protected]> wrote:
> On Thu, 2011-01-06 at 15:50 +1100, Peter Miller wrote:
>> > <Datum> 'Datum' are non-trivial, containing extensive subtrees.</Datum>
>> > <Datum> ...etc... </Datum>
>> > <TrivialFooter> blah </TrivialFooter>
>> > </BigFile>
>>
>> XML is plain text, use a text tool.
>> If the line breaks are as indicated, use split(1)
>> and then hand edit the headers and footers.
>
> Or, use awk(1) and split on lines containing /<.Datum>/
> using awk's ability to write to more than one file.
> I suppose much the same could be done in Perl, too, but I'm older than
> such new-fangled things as Perl.
>
> --
> Regards
> Peter Miller <[email protected]>
> /\/\*        http://miller.emu.id.au/pmiller/
>
> PGP public key ID: 1024D/D0EDB64D
> fingerprint = AD0A C5DF C426 4F03 5D53  2BDB 18D8 A4E2 D0ED B64D
> See http://www.keyserver.net or any PGP keyserver for public key.
>
> "A data structure is just a stupid programming language." -- R. Wm. Gosper
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to