Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

538.Random word generator -- How to simulate the specified BER(bit error rate) on text file with 0 and 1 only?

User: editor -- 2010-06-17          << 537  539 >>
Hits: 2880
Type: Random word generator   
Search all Random word generator examples
Description:
How to simulate the specified BER(bit error rate) on text file with 0 and 1 only? 
We have a text file with 0/1 as data. How to randomly reverse 1/10000 of the total bits(0->1 or 1->0)?
Input Sample:
Text File with all 0 and 1: 
01010010100101010100101010011101000 ...
Output Sample:
about 1/10000 of bits in the file are reversed
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file 
2. ctrl-h open 'replace' window 
* in 'search for pattern' enter: 
 
* in 'replace with pattern' enter: 
 
* in 'If =>' enter: 
 
3. click 'Replace', done! 
 
If you need to change multiple files, click "Batch ..." to open "Batch Runner", and drag files from "Windows File Browser" to "Batch Runner" window, click "Batch Replace", done!

Similar Examples:
How to save specified lines of text file into different files? (57%)
How to search specified pattern in a text file and remove spaces in it? (57%)
How to extract all lines with specified date range from text file? (56%)
How to shuffle specified lines in multiple text files? (56%)
How to exract specified strings started with www from text file? (56%)
How to batch extract specified lines from a text file? (56%)
How to search and sum the numbers at specified position in a text file? (55%)
How to extract multiple lines in specified order from many text files? (55%)

Check Demo of Random word generator
Keywords:
110  error  bit  total  reverse  randomly  random word generator  random word gen  word generator  ord generator  error word generator  change word generator  change the word generator  reverse word  search text file in reverse  replace with multiple data  multiple text generator  replace in reverse text