bug-coreutils
[Top][All Lists]
Advanced

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

Re: --format flag


From: Jim Meyering
Subject: Re: --format flag
Date: Sat, 13 Dec 2003 20:17:20 +0100

Chris Van Nuys <address@hidden> wrote:
> The item from the TODO list:
>
> ls:  add --format=FORMAT option that controls how each line is printed:
>
> My question is, would FORMAT be a string or a character like the rest
> of the flags for ls?  For example, would you have something like:  'ls
> -l --format=octal', or something more like 'ls -l --format=o"?

No, more like the following: (warning, these are `made-up' format directives;
it'd take some careful thought to come up with proper choices):

  ls --format="%M %I %U %G %B %D %f\n"

Implementing something like that properly
would involve a significant amount of work.
If you're interested, look at how GNU find's -printf works.




reply via email to

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