Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

928.Random word generator -- How to randomly replace one line from line 7 to line 10 with the same numbers of -?

User: Wei Jiang -- 2012-03-20          << 927  929 >>
Hits: 1927
Type: Random word generator   
Search all Random word generator examples
Description:
How to randomly replace one line from line 7 to line 10 with the same numbers of -?
Input Sample:
 4 500                 
A         CATAACGAACCGC
B         CATAACGAACCGC
C         CATAACGAACCGC
D         CATAACGAACCGC
                       
A         TCCAAGCCCATTG
B         TCCAAGCCCATTG
C         TCCAAGCCCATTG
D         TCCAAGCCCATTG
                       
A         TTGAGGATTGATA
B         TTGAGGATTGATA
C         TTGAGGATTGATA
D         TTGAGGATTGATA
Output Sample:
 4 500                 
A         CATAACGAACCGC
B         CATAACGAACCGC
C         CATAACGAACCGC
D         CATAACGAACCGC
                       
A         TCCAAGCCCATTG
B         -------------
C         TCCAAGCCCATTG
D         TCCAAGCCCATTG
                       
A         TTGAGGATTGATA
B         TTGAGGATTGATA
C         TTGAGGATTGATA
D         TTGAGGATTGATA
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 unit' to 'Line'
* set 'unit number filter' to:

* set 'replace with pattern' to:

* set 'if=>' to:

* click 'advanced' tab, set 'run following at the beginning of replace' to:

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

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to split each line of text into 2 lines with same number of characters? (59%)
How to randomly select one line from each paragraph? (57%)
How to randomly replace each word with a list of pre-defined words? (56%)
How to replace each line with line have same start word from another file? (56%)
How to replace the second column of a file with an increasing number? (54%)
How to random remove x lines from a line range in text file? (54%)
How to randomly select 2~5 lines and append a string at end? (54%)
How to replace a word/string with increasing sequence number in a text file? (52%)

Check Demo of Random word generator
Keywords:
global  randomly replace  randomly  random word generator  random word gen  word generator  ord generator  random word  random wor  random wo  word replace numbers  replace word randomly  advanced word generator  replace same word  randomly replace text file  replace the same word  the word generator  replace randomly