[thelist] How to split a long text file into separate files

Bryce Johnson bryce at popped.com
Mon Oct 15 13:56:02 CDT 2001


Ultraedit has a handy feature "Save Selection As."
You might be looking for something even more automatic

bryce

----- Original Message -----
From: "Michael Barrett" <mbarrett at triad.rr.com>
To: <thelist at lists.evolt.org>
Sent: Monday, October 15, 2001 2:43 PM
Subject: [thelist] How to split a long text file into separate files


> Listers,
>
> I have this long text file,
> The result of a mail merge from an excel document.
>
> The data in the excel doc needs to be made available on a web site. There
is
> no server side scripting available.
>
> I created a neat and clean table layout to hold the data, brought the html
> into word, then merged with the data in the excel doc to produce a long
> document with 69 tables, then saved as text.
>
> I want each table in a separate file.
>
> Short of an afternoon of copying and pasting, is there a handy way to
> (automated) way to hack the document into parts? Possibly using emacs or
> something similar?
>
> Each table is proceeded by a comment tag, and followed by two line breaks
> like so...
>
> <!--Record Number:1-->
> <table>
> Foo
> </table>
> <br>
> <br>
>






More information about the thelist mailing list