#!/bin/bash find * -maxdepth 0 -type f -name '*.failed' -exec rm {} \;