#!/bin/bash #This script will remove multiple files #Be sure to execute the 'ls' command to determine the correctness, before running the script #The example will remove all users .procmailrc file for i in $( ls /home/sites/*/users/*/.procmailrc ); do echo item: $i rm $i echo removed $i done