---
name: "print-missing-subranges"
section: "1"
platform: "linux"
package: "ncbi-entrez-direct"
version: "24.0.20250523+dfsg-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/print-missing-subranges"
---

# print-missing-subranges(1)

find gaps in a sorted list of numbers

## NAME

print-missing-subranges - find gaps in a sorted list of numbers

## SYNOPSIS

**print-missing-subranges** \[ *file* ...\]

## DESCRIPTION

**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.
