#!/bin/bash test ! -f 'bp.sh' && echo "Not in root directory" && exit 1 for fl in `find . -name "*.main.html"` do rm "${fl%.main.html}.html" done