Advertisement

06.29.2008 at 03:53PM PDT, ID: 23525518
[x]
Attachment Details

Massive Find and Delete of a Folder

Asked by ctoolz in Bourne-Again Shell (bash), Linux

Tags: Bash

Hello all,

I have several joomla web sites on a server that use a component that contains a folder that needs to be deleted.  The folder I need to delete is called bad-behavior

The web directories are contained in /home/www

I need to write a bash script or equivalent that will go down the home/www tree look for any folder named bad-behavior and delete it and its contents.

This folder is found in the follow directory structure:

/home/www/www.somewebsite.com/web/mambots/system/bad-behavior.

I am not a Bash programmer, so any help with this would be greatly appreciated.Start Free Trial
[+][-]06.29.2008 at 04:17PM PDT, ID: 21895885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 04:28PM PDT, ID: 21895911

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 04:39PM PDT, ID: 21895939

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 04:44PM PDT, ID: 21895948

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 04:52PM PDT, ID: 21895964

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Bourne-Again Shell (bash), Linux
Tags: Bash
Sign Up Now!
Solution Provided By: veedar
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628