[Novalug] Preserving color

Igor Birman igor_birman at yahoo.com
Sat Sep 22 17:56:27 EDT 2007


You can type:

ls -l --color=always > filename

This will put the codes in your file that the console can interpret as color, but you would have to interepret them some other way to figure out the colors.

Igor

gregory pryzby <greg at pryzby.org> wrote: I am not sure what you are asking.

  ls filename
may show the name in a different color depending on the type of file
(directory, executable, etc).

  ls -l filename
will give you similar information

  file filename
will look at the magic and tell you what type of file (executable,
ascii, etc)

If that doesn't answer the question, try asking it again and providing
an example

On Sat, Sep 22, 2007 at 04:36:40PM -0400, Charles M Howe wrote:
> List,
> 
> Is there any way of doing ls to a file, then looking at the color?
> 
> Charlie

-- 
greg pryzby                              greg at pryzby dot org
fingerprint: 8A1A DB90 869F 5DD1 D6E9 EEB6 C156 6B04 849F A86F
_______________________________________________
Novalug mailing list
Novalug at calypso.tux.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20070922/a9b0dfd8/attachment.htm


More information about the Novalug mailing list