Update README
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by sharkdp · committed by sharkdp · parent 961169a · Browse files · 1 file·+14 added−13 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+14 added−13 removed
- other:+14 added−13 removed
Provenance
- Commit
7f49489- Tree
d6ee975- Author
sharkdp <davidpeter@web.de>- Committer
sharkdp <davidpeter@web.de>- Parent
961169a
1 file changed+14 added−13 removed
modified:README.md+14 added-13 removed
1234456677891011121314141516171818192021222324252625262728293031272829303132333435363 unmodified lines4041424343444546474818 unmodified lines# fd[](https://travis-ci.org/sharkdp/fd)
*fd* is a simple, fast and user-friendly alternative to [*find*](https://www.gnu.org/software/findutils/).*fd* is a simple, fast and user-friendly alternative to[*find*](https://www.gnu.org/software/findutils/).
While it does not seek to mirror all of *find*'s powerful functionality, it provides sensible (opinionated)defaults for [80%](https://en.wikipedia.org/wiki/Pareto_principle) of the use cases.While it does not seek to mirror all of *find*'s powerful functionality, it provides sensible(opinionated) defaults for [80%](https://en.wikipedia.org/wiki/Pareto_principle) of the use cases.
## Features* Convenient syntax: `fd PATTERN` instead of `find -iname '*PATTERN*'`.* Smart case: the search is case-insensitive by default. It switches to case-sensitive if the pattern contains an uppercase character[\*](http://vimdoc.sourceforge.net/htmldoc/options.html#'smartcase').* Ignores hidden directories and files by default.* Colorized terminal output (similar to *ls*).* Ignores hidden directories and files by default.* Regular expressions by default.* Unicode-aware.* The command name is *50%* shorter[\*](https://github.com/ggreer/the_silver_searcher) than `find` :-).* The command name is *50%* shorter[\*](https://github.com/ggreer/the_silver_searcher) than `find` :-).
## Demo

## Colorized output*fd* can colorize files by extension, just like *ls*. In order forthis to work, you need to set up a `~/.dir_colors` file. The easiestway is to call```dircolors --print-database > ~/.dir_colors```More complete (and more colorful) alternatives can be found`fd` can colorize files by extension, just like `ls`. In order for this to work, the environmentvariable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the valueof this variable is set by the `dircolors` command which provides a convenient configuration formatto define colors for different file formats.On most distributions, `LS_COLORS` should be set already. If you are looking for alternative, morecomplete (and more colorful) variants, see[here](https://github.com/seebi/dircolors-solarized) or[here](https://github.com/trapd00r/LS_COLORS).
## Benchmark3 unmodified lines``` bash> time fd --hidden '\.jpg$' > /dev/null0,39s user 0,40s system 99% cpu 0,790 total
> time find -iname '*.jpg' > /dev/null > time find -iname '*.jpg' > /dev/null0,36s user 0,42s system 98% cpu 0,789 total```Both tools found the exact same 5504 files and havea comparable performance (averaged over multiple runs),18 unmodified lines