13 jul 2024

bash recursive delete

In the folder you want to find (and remove) files...

find . -type f \( -name '*WhatEver*' -o -name '#*#' \) -print #-delete

uncomment -delete to remove the files rather than just print

No hay comentarios:

Publicar un comentario