Adding UTF-8 BOM from the command line | skybert.net

Adding UTF-8 BOM from the command line


$ sed -i '1s/^/\xef\xbb\xbf/' file-encoded-with-utf8.txt

gmail torstein.k.johansen @ gmail ~ twitter @torsteinkrause ~