在grep'ing之后Preserve ls着色中有一个类似的问题,但是如果你把彩色的grep输出管道输入另一个grep,颜色不会被保留,那就很烦人了.
例如grep --color WORD * | grep -v AVOID,不保留第一个输出的颜色.但对我来说ls | grep FILE,保持颜色,为什么差异?
grep --color WORD * | grep -v AVOID
ls | grep FILE
linux bash grep pipe colors
bash ×1
colors ×1
grep ×1
linux ×1
pipe ×1