[OT] reOrdering text

Craig Newman dunbarx at aol.com
Wed Jan 16 10:17:35 EST 2013


Richmond. 

Replace "finish" with some char to use as a delimiter and switch lines 1 and two in each item. Then rereplace the "finish" and you are finished.

Craig  

Sent from my iPhone

On Jan 16, 2013, at 9:06 AM, Richmond <richmondmathewson at gmail.com> wrote:

> I have a socking great text file that reads in part something like this:
> 
> Cook my cheese
> fishface1
> finish
> Shave my legs
> fishface2
> finish
> Paint my fingernails
> fishface3
> finish
> Wax my arms
> fishface4
> finish
> 
> and so it goes for about 72 pages (!!!)
> 
> Now what I needs is a reordered lilst like this:
> 
> fishface1
> Cook my cheese
> finish
> fishface2
> Shave my legs
> finish
> fishface3
> Paint my fingernails
> finish
> fishface4
> Wax my arms
> finish
> 
> and, as a fairly lazy slob, I have no great wish to effect that manually.
> 
> But, for the life of me I cannot work out how to do that automatically, either inwith or outwith Livecode.
> 
> Richmond.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list