in reply to perlpie only on files with affected contents

grep -il amanda * | xargs perl -p -i.bak -e "s!amanda!barbie!ig"