Use find to find and delete empty files

This commit is contained in:
Fazle Arefin 2020-05-24 00:12:17 +10:00
parent abed667be3
commit 77c45a8784
No known key found for this signature in database
GPG Key ID: A6859B7D9849C0DD

View File

@ -837,6 +837,10 @@ find . -name "*.mso" -size -74c -delete
# M for MB, etc
```
##### Find and delete empty (0 byte) files
```bash
find . -type f -empty -delete
```
## Condition and loop
[[back to top](#handy-bash-one-liners)]