bug-coreutils
[Top][All Lists]
Advanced

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

Re: --format flag


From: Bruce Korb
Subject: Re: --format flag
Date: Tue, 16 Dec 2003 12:36:34 -0800

> 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.

I do not believe it would be a significant amount of work:
 http://savannah.gnu.org/projects/snprintfv (whenever that
goes back online again).  Personally, I'd choose to avoid
one letter cryptic entries and opt for:

  ls --format="%w.n{mod} $w{inode} ${userid} ${username} ..."

There is this about it on my site:

  http://www.gnu.org/software/autogen/manual/html_node/autogen_313.html#SEC313

but it is very brief, to say the least.




reply via email to

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