Skip to content
Discussion options

You must be logged in to vote

{1}. See:

fzf/man/man1/fzf.1

Lines 122 to 136 in bf77206

.BI "\-\-with\-nth=" "N[,..] or TEMPLATE"
Transform the presentation of each line using the field index expressions.
For advanced transformation, you can provide a template containing field index
expressions in curly braces. When you use a template, the trailing delimiter is
stripped from each expression, giving you more control over the output.
\fB{n}\fR in template evaluates to the zero-based ordinal index of the line.
.RS
e.g.
# Single expression: drop the first field
echo foo bar baz | fzf --with-nth 2..
# Use template to rearrange fields
echo foo,bar,b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MartyMcFlyInTheSky
Comment options

Answer selected by MartyMcFlyInTheSky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants