Display results as :

Rechercher Advanced Search

Top posting users this month


How to let less display color?

View previous topic View next topic Go down

How to let less display color?

Post  halala on Mon Sep 23, 2013 10:13 am

When redirect the output of "ls" or "grep" into less, the color disappeared.
You can use the option --color=always to fix this problem
For example:
    cat ./some.txt | grep --color=always something | less -R

帖子数 : 99
金币(Coin) : 2218
注册日期 : 2012-08-17

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum