[LU-16561] allow 'lfs find -printf' field widths Created: 15/Feb/23 Updated: 19/Sep/23 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.16.0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | easy, lad23dd | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
For implementing "lfs find -ls" it would be useful to allow specifying the field width for the "%x" operators, rather than forcing the use of a full tabstop with "\t" (which is often too large a field width and doesn't always work properly). Something like "%12s" to have the file size printed with 12-char fields (leading space) or "%06U" to have the file UID printed with leading zeroes. |