na - shell script to remove folder from sub directories with different names -


i want remove particular directory named "classes" web applications different names inside webapps folder.

for example, want remove folder name "classes" /tomcat6/webapps/abc, /tomcat6/webapps/xyz, /tomcat6/webapps/xxxx etc.

can 1 please me make shell script accomplish this?

this may not efficient 1 work.

first verify directories.

find /tomcat6/webapps | grep "classes$" 

if list seems ok, delete it.

find /tomcat6/webapps | grep "classes$" | xargs rm -rf 

please careful deletion not undoable once done.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -