$ sed -i '1s/^/\xef\xbb\xbf/' file-encoded-with-utf8.txtRef: http://www.skybert.net/bash/adding-utf-8-bom-from-the-command-line/
| // ==UserScript== | |
| // @name PluginForShanbay_3k | |
| // @namespace http://stormluke.me/ | |
| // @version 0.2 | |
| // @description some enhancement on shanbay.com | |
| // @match https://www.shanbay.com/bdc/review/ | |
| // @require http://code.jquery.com/jquery-1.9.1.min.js | |
| // ==/UserScript== | |
| /* globals $:false GM_xmlhttpRequest:false */ |
$ sed -i '1s/^/\xef\xbb\xbf/' file-encoded-with-utf8.txtRef: http://www.skybert.net/bash/adding-utf-8-bom-from-the-command-line/