RSS Amplifier

Recent Questions - Unix & Linux Stack Exchange · Apr 7, 2011

Where do my ANSI escape codes go when I pipe to another process? Can I keep them?

0
Sign in to vote or save

This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.

I sometime want to pipe the color-coded output fror a process, eg. grep... but when I pipe it to another process, eg. sed, the color codes are lost... Is the some way to keep thes codes intact ? Here is an example which loses the colored output: echo barney | grep barney | sed -n 1,$\ p

Read on unix.stackexchange.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.