Test the command fist by:
find /parent-dir -name fileToBeRemoved -exec echo rm {} \;
Now it wil only echo fileToBeRemoved.
When you are sure the command is correct, remove the echo and
execute to command again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.