#!/bin/sh [ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1 ed -s <