Ravi Sir's Cards › AWS
Delete files with spaces safely?
This interview card answers: Delete files with spaces safely? Use null separators. Test with echo first. Or find -delete.
Read card text
What this card says
What it is
Use null separators.
find . -name "*.tmp" -print0 | xargs -0 rm
Why it matters
Test with echo first.
... | xargs -0 echo
How / example
Or find -delete.
find . -name "*.tmp" -delete