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