find . -type f -empty -delete
find . -type f -empty
find ./rc-locals -maxdepth 1 -type f -empty -delete
.rc.local
)find . -type f -name "*.rc.local" -empty -delete
This helps avoid accidentally deleting unrelated files. For added safety, consider running the dry run command first before using -delete
.