#!/bin/sh [ "$#" -gt 0 ] || exit 2 for sr ; do printf '/r/%s:\n\n' "$sr" rdt "$sr" | sed 's/^/ /' || ex=1 printf '\n' done ex=${ex:-0}