question regarding ls w/ colors and capturing to file

Dave Mitchell davem at iabyn.com
Tue Jul 31 19:22:08 UTC 2012


On Tue, Jul 31, 2012 at 10:10:22AM -0700, Joe Zeff wrote:
> On 07/31/2012 12:45 AM, Ed Greshko wrote:
> >At the moment, I can't think of what editor would retain the colors.  :-(
> 
> If it's too long, run it through either more or less.

I think the complete command that would satisfy the OP is:

    ls -C --color=always | less -R

-- 
This email is confidential, and now that you have read it you are legally
obliged to shoot yourself. Or shoot a lawyer, if you prefer. If you have
received this email in error, place it in its original wrapping and return
for a full refund. By opening this email, you accept that Elvis lives.


More information about the users mailing list