Sorting in turn...

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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 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: 2174
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

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.

Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

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: Yahoo [Bot] and 1 guest