News for hackers. Stuff that matters.
Re:Useful use of cat(1) by emillon on Sunday February 26, 2012 @01:50PM (#3636351)
Most generally, it will trick any command into thinking that it's not writing to a tty ; so piping into cat will often remove colors.
Re:Useful use of cat(1) by burgerbrain on Sunday February 26, 2012 @02:47PM (#3636548)
Of course if you want colours, you can often force programs to use them anyway. For example, I use the alias:

  alias new='ls -lthr --color=always | tail'
Normally ls will not use colours when writing to a pipe (not a tty).