Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1218.Text sort -- How to sort paragraphs according to order of first date?

User: xiaoming -- 2014-07-18          << 1217  1219 >>
Hits: 1160
Type: Text sort   
Search all Text sort examples
Description:
a.txt
There are more than 1000 paragraphs, each paragraph would like to re-sort the date condition

Thank you.
(Translation from google)
Input Sample:
a.txt
www.mind-pioneer.com/services/conv_list.php=1
[ 1 2 3 4 5]
abc  2014-07-11

www.mind-pioneer.com/services/conv_list.php=12
123  2013-06-10

.....

www.mind-pioneer.com/services/conv_list.php=132
[ 1 2 3 4 5 .. 15]
a12bc  2014-07-16
Output Sample:
b.txt
ww.mind-pioneer.com/services/conv_list.php=12
123  2013-06-10

www.mind-pioneer.com/services/conv_list.php=1
[ 1 2 3 4 5]
abc  2014-07-11

.....

www.mind-pioneer.com/services/conv_list.php=132
[ 1 2 3 4 5 .. 15]
a12bc  2014-07-16
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' dialogue
* set 'replace with pattern' to:

* click 'advanced' tab, set 'run following for each matched unit' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to sort paragraphs base on the second word in each paragraph? (58%)
How to split a file into two parts according to the content of line? (57%)
How to extract all paragraphs matching "spanning-tree" and remove the match line? (55%)
How to sort the numbers in each line by the descending order in a text file? (55%)
How to sort all the lines by the order of date with format day-month-year? (55%)
How to split a text file according to first word in each line? (55%)
How to sort numbers by the order of distance from some number? (54%)
How to sort each line of text by the order of reversed line? (54%)

Check Demo of Text sort
Keywords:
sort paragraph  google  condition  more than 10  paragraphs  trans  more than  paragraph  paragra  acc  match condition  split 1000  split date  join sort split match n  split according to first  split text file according to  file split according to text  sort first