question regarding ls w/ colors and capturing to file

Paul Allen Newell pnewell at cs.cmu.edu
Wed Aug 1 01:00:50 UTC 2012


On 7/31/2012 12:22 PM, Dave Mitchell wrote:
> 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
>

Dave:

This also works very well

Many thanks,
Paul


More information about the users mailing list