|
Post by George on Jul 16, 2022 9:08:11 GMT -5
This is a simple technique to sort the words in a paragraph. The 'paragraph' may not be normal text, it could be the data in a CSV file, a list of keywords, and could be space or character delimited. The trick is using the TF line command (Text Flow). Example: Here's some dummy text.  The first task is to separate the words. Enter a TF 1 command on line 1. Text flow will complain that every line is an overflow line, but that's fine. The result is:  Now issue a SORT command (or SORT UNIQ if you want to eliminate duplicate words) and then issue a TF 80 on line 1 (or whatever line length you wish in the TF command) The result:  As the saying goes - Ta! Da! If the data is delimited by, say, commas etc. You may need a couple CHANGE ALL commands to standardize the format, each data collection will probably have some peculiarities like that, but the basic TF 1 / SORT / TF nn commands still do the bulk of the work. George ===> An alternative command to split the words apart is SPLIT ' ' P'|' ALL which will not produce the TF error message. However, the JOIN command does not seem to work as well for putting things back together. For the task at hand, TF80 works better. R
|
|