#!/bin/sh dir=$1 file=$2 page=${file%.delete} echo "Deleting $page" rm -rf "${dir:?}/${page:?}"