#!/bin/bash set -x for file in ./* do if test -d $file then rm -rf $file/target fi done