Fzf the File Fuzzy Finder
Publish date: Jul 14, 2019
Last updated: Apr 22, 2020
Last updated: Apr 22, 2020
Start finder on entries that start with core and end with either go, rb, or py:
fzf -q "^core go$ | rb$ | py$"
Start finder on entries that not match pyc and match exactly travis:
fzf -q "!pyc 'travis"
# search md files within a folder with live preview
fzf -q 'content/blog/ md$' --preview 'cat {} | head -30'
FZF Previews with BAT
bat --list-themes | fzf --preview="bat --theme={} --color=always /path/to/file"
fzf -q '.md' --color=always --preview='bat --theme=<> --language <bash> {}'
Search Filesystem
Find and delete all files that are owner by root
owner/group. Useful then debugging file ownership issues inside docker volumes
find . -group root -delete
Excluding paths
find / -name NameOfFile ! -path '*/Directory/*'
Use grep to search through the contents of the file
Footnotes
[^2]: