问问题
1282 次
1 回答
3
I think that the sed command you are looking for is this:
sed 's/\xE2\x80\x94/-/g' thisfile
\xE2\x80\x94 is hex for what I assume is the offending character sequence. (FYI, it is the UTF-8 code for character 2014, a long dash of some kind). This is preferable to trying to throw special characters directly into a sed command.
If this does not work, use hexdump to find out exactly what the offending bytes are.
hexdump -C thisfile
于 2012-11-01T15:33:34.270 回答