#!/bin/sh for d in `find . -type d -name new` do echo $d: find $d \( -name '*.abc' -o -name '*.txt' \) -exec ls -l {} ';' -exec rm {} ';' done