in reply to Re: Find and Replace from File Listin thread Find and Replace from File List
$pattern was used as part of another script.
I did remove it as it's unnecessary for this code.
Thanks for the advice.