#!/bin/bash #The 'ls' command must have the files to be nulled #Be sure to execute the 'ls' command to determine if the correct files are to be nulled. #The example will null all users .procmailrc for i in $( ls /home/sites/*/users/*/.procmailrc ); do echo item: $i cat /dev/null > $i cat $i done