Cat a directory
Chris Pressey
cpressey at catseye.mine.nu
Mon Sep 22 09:42:45 PDT 2003
On Mon, 22 Sep 2003 12:01:15 -0400
Damian Gerow <damian at sentex.net> wrote:
> Thus spake Chris Pressey (cpressey at catseye.mine.nu) [22/09/03 11:54]:
> > Also, I believe 'GNU ls', in the ports, supports coloured directory
> > listings.
>
> As does FreeBSD's ls. From 'man 1 ls':
>
> -G Enable colorized output. This option is equivalent to
> defining CLICOLOR in the environment. (See below.)
Yes, but actually, I was mistaken; neither FreeBSD's ls nor GNU ls seems
to support coloured directory listings in the style the OP indicated:
> [Mikael Karlsson]
> As it would make finding certain files easier by coloring them
> differently depending on their ending.
I can't find any way to get either of these ls programs to colour based
on (say) sh-style regexps. But there's probably a program out there
somewhere that does...
-Chris
More information about the freebsd-questions
mailing list