在bash中,我如何删除单词模块行的开头?

我将输出到文本文件,然后遍历该文本文件以使用每一行

sed -n ${z}p < plan.txt

The output is starting with ^[[0m^[[32m ^[[32m+^[[0m ^[[32mmodule.modulename.resorce.resorcename I am not sure why it has ^[[0m^[[32m ^[[32m+^[[0m ^[[32m starting each line but i only want the output from module till resource name?

评论