question regarding ls w/ colors and capturing to file

2012-07-30 Thread Paul Allen Newell
Fedora List: I can run "ls -FR" on a directory and get a lovely listing with lots of color coded information to let me know what is what. I have hit a directory that is big enough that scrolling though the output isn't efficient. I would like to capture the output of "ls -FR" into a file that

Re: question regarding ls w/ colors and capturing to file

2012-07-30 Thread Ed Greshko
On 07/31/2012 02:15 PM, Paul Allen Newell wrote: > Fedora List: > > I can run "ls -FR" on a directory and get a lovely listing with lots of color > coded information to let me know what is what. I have hit a directory that is > big enough that scrolling though the output isn't efficient. I would

Re: question regarding ls w/ colors and capturing to file

2012-07-30 Thread Paul Allen Newell
On 7/30/2012 11:22 PM, Ed Greshko wrote: script -c "ls -FR --color" outfile Ed: Thanks for the very prompt reply. I tried the command and I am not getting what I expect when I open the file. Part of the problem (maybe large part) is that I am opening in vim. What editor should I use for see

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Ed Greshko
On 07/31/2012 02:48 PM, Paul Allen Newell wrote: > Thanks for the very prompt reply. I tried the command and I am not getting > what I expect when I open the file. Part of the problem (maybe large part) is > that I am opening in vim. What editor should I use for seeing this as all I > get in vim

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Ed Greshko
On 07/31/2012 03:45 PM, Ed Greshko wrote: > I'll try to think a bit more I just realized you mentioned "more" and "less" in your original post less -r outfile Will show the colors Is that sufficient? -- Programming today is a race between software engineers striving to build bigge

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/31/2012 02:53 AM, Ed Greshko wrote: > On 07/31/2012 03:45 PM, Ed Greshko wrote: >> I'll try to think a bit more > > I just realized you mentioned "more" and "less" in your original post > > less -r outfile > > Will show the colors Is

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread eoconno...@gmail.com
Just gotta say Ed, you're like.the Wizard when it comes to this stuff!..LoL! Sent from Eddie's Cell Phone - Reply message - From: "Ed Greshko" To: "Community support for Fedora users" Subject: question regarding ls w/ colors and capturing to file D

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Ed Greshko
On 07/31/2012 07:12 PM, Mikkel L. Ellertson wrote: > Wouldn't -R work better then -r? Yes, it would be better. -- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Joe Zeff
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. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraprojec

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Dave Mitchell
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:

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Paul Allen Newell
On 7/31/2012 4:35 AM, Ed Greshko wrote: On 07/31/2012 07:12 PM, Mikkel L. Ellertson wrote: Wouldn't -R work better then -r? Yes, it would be better. Ed and Mikkel: +++ script -c "ls -FR --color" outfile; less -R outfile +++ works great. Its a bit of a pain to not be able to use an editor t

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Paul Allen Newell
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

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Mikkel L. Ellertson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/31/2012 08:00 PM, Paul Allen Newell wrote: > On 7/31/2012 4:35 AM, Ed Greshko wrote: >> On 07/31/2012 07:12 PM, Mikkel L. Ellertson wrote: >>> Wouldn't -R work better then -r? >> Yes, it would be better. >> > > Ed and Mikkel: > > +++ > script -c

Re: question regarding ls w/ colors and capturing to file

2012-07-31 Thread Paul Allen Newell
On 7/31/2012 6:24 PM, Mikkel L. Ellertson wrote: Paul, You may want to look at the search capabilities built into less. (man less). Unless you need to modify the file, less should let you do what you want. Also, you can use ls -FR --color | less -R to get rid of the output to the screen buf

Re: question regarding ls w/ colors and capturing to file

2012-08-01 Thread David
On 01/08/2012, Mikkel L. Ellertson wrote: > > Also, you can use ls -FR --color | less -R to get rid of the output > to the screen buffer. The -F option of 'less' could be added: ls -FR --color | less -FR This activates 'less' only if necessary, when there is more data than will fit on one