1. Delete the document blue escape character ^ M
Note: ^ M ^ and M can not be entered from the keyboard, it can not be copied. But need to press Ctrl + v and then press Ctrl + M Press Ctrl + v when the screen is not output, then press Ctrl + M will appear when ^ M This is very important! ! ! ! ! Enter the ending to press Ctrl + v keyboard will switch back again.
sed -i 's/^M//g' swlog.log
2. ^ [[16D documentation of this character that appears in the ^ [is blue, it should be an escape character, as with the above method to delete this, Ctrl + V and Ctrl + [the rest is ordinary characters, can be replaced.