[TAG] 2-cent Tip: Octal permissions in "ls"

Chris Bannister mockingbird at earthlight.co.nz
Mon Mar 28 07:05:58 MSD 2011


On Sun, Mar 27, 2011 at 12:44:53PM +0100, Thomas Adam wrote:
> On 27 March 2011 03:53, Ben Okopnik <ben at linuxgazette.net> wrote:
> > I've always wondered why "ls" doesn't just have this as an option. Got
> > tired of wondering, so I went ahead and wrote it.
> 
> Nice -- there's several tools like this now about -- to
> enhance/transform the output of commands and add colour to them.

WHOA!! :) There lie dragons ... . You end up in all sorts of strife
because the escape codes[1] are passed through as well.

I even remember tab completion misbehaving in weird ways.

And all this so grep could "highlight" the selection(s).

[1] needed to colour the output.

-- 
"Religion is excellent stuff for keeping common people quiet."
   -- Napoleon Bonaparte



More information about the TAG mailing list