Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1132.Advanced search and replace -- How to find missing numbers from a list of numbers?

User: liping -- 2013-09-13          << 1131  1133 >>
Hits: 3243
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Find missing numbers 
 
File (a.txt) is 15000-40000 such order, in the middle a little something figures, such as less 16321,27770,32022, etc., I now want to find out these numbers (b.txt). 
 
My current approach is 
1: Generate file c.txt "15000-40000" all the numbers. 
2: c.txt - a.txt = b.txt 
 
I would like to know if there was a better way. Thank you 
 
 
Input Sample:
a.txt 
15000 
15001 
... 
(missing 1233, 1357) 
... 
40000
Output Sample:
1233 
1357
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: 
 
3. click 'replace', done. 
4. ctrl-s save to file

Screenshot 1:  Replace_Window


Similar Examples:
How to split a string (text + number) at the last number? (68%)
How to find the maximum number in each line that contains 3 numbers? (66%)
How to mask specified bytes of a list of phone numbers? (62%)
How to sort numbers by the order of distance from some number? (61%)
How to change all negative numbers to the format of (number)? (57%)
How to expand all the numbers in the list and seperate them by comma? (56%)
How to find out the top 5 largest and distinct numbers in a text file? (55%)
How to add sequence number for duplicated line? (54%)

Check Demo of Advanced search and replace
Keywords:
missing numbers  321  missing  figure  500  middle  current  list of numbers  less  find  search figures in a file  find and replace all numbers in a text file  find and replace all numbers  find numbers  find and replace list  list numbers  find and replace text with a  find pattern in file replace