我有一个bash脚本运行并输出到文本文件,但它使用的颜色代码也包括我想知道的是如何从文件中删除它们,即
^[[38;1;32mHello^[[39m ^[[38;1;31mUser^[[39m
所以我只想留下Hello和User
bash shell
bash ×1
shell ×1