Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month

GeoMap

How to let less display color?

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:
Code:
    cat ./some.txt | grep --color=always something | less -R
avatar
halala

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

View user profile

Back to top Go down

Back to top

- Similar topics

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