Wednesday, July 11, 2007

UTF-16 grep

Got the UTF-16 blues? iconv is your new best friend:

iconv -f UTF-16 -t UTF-8 input.csv | grep "something" > new.csv

Cribbed from MRM.