Y
Hacker News
new
|
ask
|
show
|
jobs
by
Karliss
3075 days ago
Somewhat more common use of this is to check if output goes to terminal so that terminal color codes don't get printed to files.
1 comments
rocqua
3074 days ago
Which is really annoying when you want to pipe grep to less, and need to add --color=always to get grep to understand less takes color codes (when using less -R).
link