#!/bin/bash ### This script finds all .t2t (txt2tags) files and deletes the corresponding html file find . -name '*.t2t' | while read t2t ; do html="${t2t%.t2t}.html" rm -f "$html" done