If you want a command to delete a specific file or directory that existing in multiple subdirectories.
Use the below command.
find . -name .filename. | xargs rm -rf
Note: files can be a filename or directory name. You can use rm with -rf or without
Latest posts by Tapas Mishra (see all)
- Working with Docker – II - December 16, 2016
- Working with Docker – I - November 28, 2016
- How to work with Chef using Oracle VirtualBox and Vagrant on a Windows host – Part II - November 30, 2014