forex.pm forex forum binary options trade - Binance - Сryptocurrency exchanges - Shell Script - Block Sequence check and add missing block
  • Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Shell Script - Block Sequence check and add missing block

Started by Bitcoin, Mar 19, 2022, 04:41 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Shell Script - Block Sequence check and add missing block

I am trying to scan blocks lets say from 1 to 10.


lets say


(3,1,4,8,2,7,9,10)


min block = 1 , max block = 10


expected sequence = 1 to 10


missing blocks= 5,6


I need a shell script that is going to pick up the missing block in the range and add them to create a new set. Sorting is not needed though


Best Regards,


Source: Shell Script - Block Sequence check and add missing block