mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
Merge pull request #15 from fazlearefin/master
Use find to find and delete empty files
This commit is contained in:
commit
ba73fb49d2
@ -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