bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #18927] feature request: user defined format for ls output


From: James Youngman
Subject: [bug #18927] feature request: user defined format for ls output
Date: Sat, 25 Aug 2007 12:06:21 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-2)

Follow-up Comment #4, bug #18927 (project coreutils):

My experience with find -printf format letters (and I'm sure of the coreutils
developers with command-line option letters) is that there just aren't enough
letters.   The ones you end up with still available just aren't mnemonic for a
new use you have in mind anyway.  If you want to implement this feature (and
I'm kind of neutral on the idea) I would strongly recommend using words as
templating tokens.  Perhaps a little like Python does it:

"%(inode)s %(typeletter)s %(symbolicmode)s  %(st_nlinks)d %10(owner)s...n"

Here the item in parentheses is a symbolic name for the thing to be
formatted, and the other stuff determines the width of the field and how the
data is to be formatted, as usual.  

Of course there is a good argument that since find already has most of this
functionality, the simplest path is to add the remaining required
funcitonality to find.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?18927>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]