perl -pi -e 's/find/replace/g' filenameHowever, this too was slow -- much slower than I expected.
Because I was checking the file in Tex-Edit after each find/replace, the process was taking some time, until on a whim I used Tex-Edit to change the line endings from "Mac" to "Unix" style.
From that point on, the 'perl s/' command ran blazingly fast.

