Sorting in turn...

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

alnico
Posts: 74
Joined: Fri Oct 12, 2007 11:57 pm

Sorting in turn...

Postby alnico » Wed Feb 09, 2011 1:27 pm

I need to take a single line containing pattern and duplicate/insert it x times and increment certain digits in its line number, 1.1.1 (which gets used for sorting).
Then numerically sort ALL input and reset a specific line number digit (1.1.0), and then repeat this process again...so in effect repeating pattern match and sorting entire document in turn.

Sorting after a merge does not work, as it happens only once.

I am using VBScript for part of the processing...but I am not sure if this sorting can be done there either.

Any ideas?

User avatar
DataMystic Support
Site Admin
Posts: 2136
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Sorting in turn...

Postby DataMystic Support » Fri Feb 11, 2011 11:58 am

You will have to use VBScript/JScript to repeatedly run the filter - note that you can change which data is being sorted by settings the start column to X and the length to Y.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

alnico
Posts: 74
Joined: Fri Oct 12, 2007 11:57 pm

Re: Sorting in turn...

Postby alnico » Sun Feb 13, 2011 11:41 pm

Okay...I am looking into using sub initSubFilters() to control the flow and what subfilters get hit.


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest