#!/bin/bash
cd /home/shahid/ # Change the dectory to the specified location
monit stop all # Stop all the process
rm -rf log/* […]

Continue reading " Shell Script to delete unwanted files and directories "