Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
935.Random word generator -- How to extract half of lines from a text file randomly?
User:
editor -- 2012-04-11
<< 934
936 >>
Hits:
3816
Type:
Random word generator
Search all
Random word generator
examples
Description:
How to extract half of lines from a text file randomly?
Input Sample:
line1
line2
...
line100
Output Sample:
total extract 50 lines from 100 lines:
line1
line3
line4
...
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' window
* set 'replace with pattern' to:
rand_str_unique(-count($match,'\n')/2,split('\n',$match))
3. click 'replace', done.
Screenshot 1: Replace_Window
Similar Examples:
How to sort all the lines of a text file randomly?
(88%)
How to extract 3 lines from each file randomly?
(84%)
How to extract all IP address from a text file?
(73%)
How to extract 5 unique lines from a text file with 30 lines?
(71%)
How to extract all html address from a text file?
(71%)
How to extract all lines with numbers from many text files?
(70%)
How to take part of the first line and insert them in text file randomly?
(69%)
How to extract all telephone numbers from a text file?
(69%)
Check Demo of
Random word generator
Keywords:
unique
randomly
random word generator
random word gen
word generator
ord generator
random word
random wor
random wo
random
half word generator
replace half of word
extract lines from word
word extract lines
replace word randomly
randomly replace text file
replace randomly
randomly replace