mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
Plain {} placeholders consume arguments sequentially as before; {N}
refers to the Nth argument (1-based) and may be used to repeat and/or
reorder arguments, e.g. format("{1}/{2}/{1}_{3}.ext", $p1, $p2, $p3).
Mixing is allowed: the {} sequence counter is independent of positional
placeholders (as in Rust format!). Out-of-range indices interpolate the
empty string, consistent with existing too-few-arguments behavior; {0}
is an error value since indices are 1-based.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| 0001 | ||
| 0002 | ||
| 0003 | ||
| 0004 | ||
| 0005 | ||
| 0006 | ||
| 0007 | ||
| 0008 | ||
| 0009 | ||
| 0010 | ||
| 0011 | ||
| 0012 | ||
| 0013 | ||
| 0014 | ||
| 0015 | ||
| 0016 | ||
| 0017 | ||
| 0018 | ||