archlinuxcn / lilac

Lilac is the build bot for archlinuxcn
GNU General Public License v3.0
114 stars 40 forks source link

让lilac的log看起来好一点。。。 #16

Closed petronny closed 8 years ago

petronny commented 8 years ago
#!/bin/sh
sed -e 's/^M$//g' -e 's/^.*^M//g' -e 's/^[(B//g' -e 's/^[\[[0-9]*[mK]//g' -e 's/ *$//g' -i "$@"
sed '/^____/{:i;s/\n/^M/;N;/\n____/bi;s/^.*^M//}' -i "$@"

干掉了色彩输出和各种进度条 最后一行是我在编译tensorflow时遇到的,多数情况应该不需要

lilydjwg commented 8 years ago

可是我挺喜欢彩色输出的呀。

petronny commented 8 years ago

好吧less -r 看起来就正常了。。

不过发邮件时里面的log没准可以处理一下

lilydjwg commented 8 years ago

没准你可以处理一下你的邮件客户端 :-)

petronny commented 8 years ago

有道理、、、

zsrkmyn commented 8 years ago

mutt的话直接用|命令传到less -r就好了 XD

lilydjwg commented 8 years ago

set allow_ansi=yes 就好了~

petronny commented 8 years ago

Get it√