Re: [NTB] Modify Lines - Reverse?
- otirsh@... wrote:
> Help? How do I reverse the order of lines of a text document in
> notetab ?
> transform this:
> into this:
> Great program.
> Like the new clip bar that I found in my most recent update.
I think this clip is what you wanted. It reverses the order of
lines in a file without a descending sort.
Add clip to a library of your choice, load the file you want to
reverse and run the clip.
It is written to create a new file, with the lines reversed,
without altering the parent file.
Word wrap is turned off in case you have any long lines.
Toward the end of the clip, before the AppendTofile line, 2
instruction lines tell how to preserve, or not, blank lines.
Take care that the Append line doesn't get wrapped after you add
the clip to a library.
h="reverse line order"
^!If ^%index% = 0 END
;- to remove blank lines from finished file
;- remove comment/; from next line
;^!If ^$GetSelection$ = "" LOOP