finding the missing values in a range using any scripting language - perl, python or shell script
bash, perl, python, shell
Solution
Pure bash.
Use two subshells and run a `diff`, then clean up the results.
diff <(cat my_range_with_holes) <(seq 1 1000) | grep '>' | cut -c 3-
Problem
I got stuck in one problem of finding the missing values in a range and the range is also variable for the successive rows. input ``` 673 673 673 676 676 680 2667 2667 2668 2670 2671 2674 ``` output should be like this ``` 674 675 677 678 679 2669 2672 2673 ``` This is just one part and the row values can be more also If you need any clarification, please let me know.