[plug] Mass substitute mixed utf files

Carl Gherardi carl.gherardi at gmail.com
Wed Feb 23 21:14:02 WST 2011


Hey all,

I've discovered over that my two favourite tools dont deal with utf16
particularly well

grep something utf16file fails as does cat utf16file | sed
's/something/replace/g'

I've got several hundred files of mixed utf16 and utf8 files that i
want to perform a substitution on and preserve their utfness, as they
are part of a parsing regression test suite.

Any ideas?

Carl G



More information about the plug mailing list