Remover arquivos da pasta e subpastas

Escrito por Super User Ligado . Publicado em Uncategorised

find -name *.*~  -exec rm '{}'  \;
 
Ou
 
find /diretorio/  -name  "*~" -exec rm {} \;
e
find /diretorio/  -name  "~*" -exec rm {} \;