Select files from a pipeline
Pipe any list into fzf and interactively pick a line.
find . -type f | fzffzf reads from standard input, so any command that prints lines can become an interactive picker.
Core fzf usage patterns for filtering lists, selecting items, and integrating the result into shell workflows.
Use fzf as a standalone fuzzy selector in shell pipelines.
Pipe any list into fzf and interactively pick a line.
find . -type f | fzffzf reads from standard input, so any command that prints lines can become an interactive picker.
Capture the selected value and open it with $EDITOR.
vim "$(find . -type f | fzf)"Classic pattern for launching your editor on a fuzzy-selected file.
find . -type f | fzf -mUse TAB to mark multiple items and Enter to accept them.
ps -ef | fzf --exactHelpful when the result set is noisy and you want strict matching.
ps -ef | fzf --nth=1,8..Useful for ignoring noisy columns while keeping them visible in the UI.
Hide or reorder fields in the list without changing the selected line.
ps -ef | fzf --nth=1,8.. --with-nth=8..Common for process pickers and tabular output.
Parse colon- or tab-delimited input cleanly.
cut -d: -f1,3 /etc/passwd | fzf --delimiter=':' --with-nth=1Pair this with --nth or --with-nth for structured line formats.
Seed the query, print clean output, and control exit behavior.
git branch --all | fzf --query='feature/'Good for narrowing large lists from the first render.
find . -type f | fzf --print-queryUseful in scripts when the query itself is meaningful input.
Accept immediately when there is exactly one match.
find . -type f | fzf --select-1 --exit-0Popular in scripts because it reduces extra keystrokes on precise searches.
Use fzf as a fuzzy filter without opening the UI.
printf '%s
' alpha beta gamma | fzf --filter=gmGreat for scripts when you want fzf matching semantics without TUI interaction.