shell 删除颜色代码

sed -r "s/x1B[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"

  

原文地址:https://www.cnblogs.com/shiyiwen/p/8529871.html