> This is what I do: > perl -i.bk -pe 's/\/etc\/(imapd|cyrus)\.conf/\/usr\/local\/etc\/$1\.conf/g' `egrep -il '\/etc\/(imapd|cyrus)\.conf' */* */*/*` Just as a reminder, the / separator character is optional in perl and can be replaced with any other character. Equivalent, but a just more readable is something like: perl -i.bk -pe 's#/etc/(imapd|cyrus)\.conf#/usr/local/etc/$1\.conf#g' `egrep -il '/etc/(imapd|cyrus)\.conf' */* */*/*` -- Michael --