rm remov dirs matching string code example Example: how to erase folder that match characters in linux find . -type d -name 'received_*_output' -exec rm -r {} +