Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

Delete files with spaces safely?

This interview card answers: Delete files with spaces safely? Use null separators. Test with echo first. Or find -delete.

Delete files with spaces safely? Use null separators. Test with echo first. Or find -delete.
Delete files with spaces safely? · Download PNG
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

See all AWS revision cards