Forgive the ignorance... perl -pe ' s/"/\"/g; ' This there any reason that the above wouldn't work? I'm guessing it has to with the "-pe" options (which I know nothing about).