Skip to content
Myr

Add troubleshooting section, closes #386

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 2672d84 · Browse files · 1 file+29 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+29 added−0 removed

  • other:+29 added−0 removed

1 file+29 added−0 removed

modified:README.md+29 added
425 unmodified lines
426```427Here, the `-0` option tells *fd* to separate search results by the NULL character (instead of428newlines). In the same way, the `-0` option of `xargs` tells it to read the input in this way.429430### Troubleshooting431432#### `fd` does not find my file!433434Remember that `fd` ignores hidden directories and files by default. It also ignores patterns435from `.gitignore` files. If you want to make sure to find absolutely every possible file, always436use the options `-H` and `-I` to disable these two features:437``` bash438> fd -HI …439```440441#### `fd` doesn't seem to interpret my regex pattern correctly442443A lot of special regex characters (like `[]`, `^`, `$`, ..) are also special characters in your444shell. If in doubt, always make sure to put single quotes around the regex pattern:445446``` bash447> fd '^[A-Z][0-9]+$'448```449450If your pattern starts with a dash, you have to add `--` to signal the end of command line451options. Otherwise, the pattern will be interpreted as a command-line option. Alternatively,452use a character class with a single hyphen character:453454``` bash455> fd -- '-pattern'456> fd '[-]pattern'457```458459### Integration with other programs460461#### Using fd with `fzf`462
31 unmodified lines