Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1412.Text sort -- How to sort text separated by semicolon from shortest to longest?

User: y8888 -- 2017-12-28          << 1411  1413 >>
Hits: 1228
Type: Text sort   
Search all Text sort examples
Description:
How to come by ; sort shortest to longes
Input Sample:
AND gate;conjunction gate;logic product gate;intersection gate;AND element
by turns;in sequence;one after another;one by one;suffer;endure
Output Sample:
AND gate;AND element;conjunction gate;intersection gate;logic product gate
suffer;endure;by turns;one by one;in sequence;one after another
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialog
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

3. click 'replace', done.
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to sort the text file by the date at the beginning of each line? (58%)
How to sort the comma separated words by the length of words? (57%)
How to add a semicolon at the end of each line? (56%)
How to extract text from 'start' to 'end' in each line? (55%)
How to swap the first part and second part of many filenames? (54%)
How to sort lines that started with IP address? (53%)
How to delete all text after the second comma in each line? (53%)
How to sort the text by the number of specific word in each line? (52%)

Check Demo of Text sort
Keywords:
colon  short  length  separate  text sort  test  sort  para  par  num  text file sort by length  sort by length  sort text by length  sort text file by length  sort file by text length  replace semicolon  length replace  sort num