mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
Use find to find and delete empty files
This commit is contained in:
parent
abed667be3
commit
77c45a8784
@ -837,6 +837,10 @@ find . -name "*.mso" -size -74c -delete
|
|||||||
# M for MB, etc
|
# M for MB, etc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### Find and delete empty (0 byte) files
|
||||||
|
```bash
|
||||||
|
find . -type f -empty -delete
|
||||||
|
```
|
||||||
|
|
||||||
## Condition and loop
|
## Condition and loop
|
||||||
[[back to top](#handy-bash-one-liners)]
|
[[back to top](#handy-bash-one-liners)]
|
||||||
|
Loading…
Reference in New Issue
Block a user