Skip to content

Commit dfa8029

Browse files
authored
Create oneliners.md
1 parent 461c5df commit dfa8029

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: oneliners.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# some useful oneliners
2+
3+
```bash
4+
# remove invalid image files
5+
fd -e jpg -e jpeg -e png -0 | xargs -0 -r -P8 -I{} sh -c "identify -regard-warnings -- {} &>/dev/null || { echo {} is invalid. I will remove it now; rm -- {}"
6+
```

0 commit comments

Comments
 (0)