3 ms·
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.
by emillon 15y ago
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.
- burgerbrain 15y agoOf 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).