Edit multiple files at once (perl is not yet dead)

perl -pi.bak -e 's/<REGEX>/<REGEX>/g' <FILES>


Reference: