#!/bin/sh set -e # check if we have rg(1) if ! command -v rg >/dev/null 2>&1; then printf "%s: Missing dependency: rg(1)\n" "$0" 1>&2 exit 69 # sysexits(3) EX_UNAVAILABLE else rg --multiline --files-without-match --glob '*.rs' --pcre2 \ '(?