print-missing-subranges(1)

print-missing-subranges1

Find gaps in a sorted list of numbers

Usage

print-missing-subranges [file ...]

Overview

print-missing-subranges reads a pre-sorted list numbers (one per line) and prints to standard output a list of subranges that do not appear, in the format min-max, one per line. Gaps containing only one number yield lines with identical min and max values.

Options

file ...

File(s) to read, standard input by default. Multiple files are implicitly concatenated and expected to yield a single sequence.

From ncbi-entrez-direct 24.0.20250523+dfsg-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.