Bulk delete files with spaces in their name

 Different methods:

xargs -d "\n" -I {} rm \"{}\"

find . -name "*.txt" -print0 | xargs -0 rm

find . -name "*.txt" -delete

find . -name "*.txt" -exec rm {} +


Popular posts from this blog

The most useful defaults-write options

Erasing firmware password

Migrating from Windows to Mac