$ sed -i '1s/^/\xef\xbb\xbf/' file-encoded-with-utf8.txtRef: http://www.skybert.net/bash/adding-utf-8-bom-from-the-command-line/
$ sed -i '1s/^/\xef\xbb\xbf/' file-encoded-with-utf8.txtRef: http://www.skybert.net/bash/adding-utf-8-bom-from-the-command-line/