F~u~c~k i~t!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month
No user

GeoMap

How to let less display color?

Go down

How to let less display color? Empty How to let less display color?

Post  halala 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
halala
halala

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

Back to top Go down

Back to top

- Similar topics

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