问题描述 这里提供几种快速去出utf-8 BOM的方法: 1.用sed去BOM cd ~ sed -e '1s/^\xef\xbb\xbf//' filename 2.用tail去BOM cd ~ tail --bytes=+4 filename