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
Post a Comment