#!/bin/bash -norc

# Public domain notice for all NCBI EDirect scripts is located at:
# https://www.ncbi.nlm.nih.gov/books/NBK179288/#chapter6.Public_Domain_Notice

# find missing subranges in list of ordered numbers
awk '($1 != p+1) { print p+1 "-" $1-1} { p=$1 }' "$@"
