sharkdp/fd: A simple, fast and user-friendly alternative to find.


77 bookmarks. First posted by rizo may 2017.


undefined
unix  linux  find 
2 days ago by andyw8
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects.
file  find  tool  search  simplified  lightweight  unix  opensource  floss 
5 weeks ago by gilberto5757
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
github 
9 weeks ago by iwebthings
fd is a simple, fast and user-friendly alternative to find.

While it does not seek to mirror all of find's powerful functionality, it provides sensible (opinionated) defaults for 80% of the use cases.
cli  search  find  github 
april 2018 by bezthomas
Github repo
Name: fd
Tagline: A simple, fast and user-friendly alternative to 'find'.
Languages:
Rust = 87027 bytes
Shell = 3741 bytes

# fd
[![Build Status](https://travis-ci.org/sharkdp/fd.svg?branch=master)](https://travis-ci.org/sharkdp/fd)
[![Build status](https://ci.appveyor.com/api/projects/status/21c4p5fwggc5gy3j?svg=true)](https://ci.appveyor.com/project/sharkdp/fd)
[![Version info](https://img.shields.io/crates/v/fd-find.svg)](https://crates.io/crates/fd-find)

*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.

## Features
* Convenient syntax: `fd PATTERN` instead of `find -iname '*PATTERN*'`.
* Colorized terminal output (similar to *ls*).
* It's *fast* (see [benchmarks](#benchmark) below).
* 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.
* Ignores patterns from your `.gitignore`, by default.
* Regular expressions.
* Unicode-awareness.
* The command name is *50%* shorter[\*](https://github.com/ggreer/the_silver_searcher) than
`find` :-).
* Parallel command execution with a syntax similar to GNU Parallel.

## Demo

![Demo](doc/screencast.svg)

## Benchmark

Let's search my home folder for files that end in `[0-9].jpg`. It contains ~190.000
subdirectories and about a million files. For averaging and statistical analysis, I'm using
[hyperfine](https://github.com/sharkdp/hyperfine). The following benchmarks are performed
with a "warm"/pre-filled disk-cache (results for a "cold" disk-cache show the same trends).

Let's start with `find`:
```
Benchmark #1: find ~ -iregex '.*[0-9]\.jpg$'

Time (mean ± σ): 7.236 s ± 0.090 s

Range (min … max): 7.133 s … 7.385 s
```

`find` is much faster if it does not need to perform a regular-expression search:
```
Benchmark #2: find ~ -iname '*[0-9].jpg'

Time (mean ± σ): 3.914 s ± 0.027 s

Range (min … max): 3.876 s … 3.964 s
```

Now let's try the same for `fd`. Note that `fd` *always* performs a regular expression
search. The options `--hidden` and `--no-ignore` are needed for a fair comparison,
otherwise `fd` does not have to traverse hidden folders and ignored paths (see below):
```
Benchmark #3: fd -HI '.*[0-9]\.jpg$' ~

Time (mean ± σ): 811.6 ms ± 26.9 ms

Range (min … max): 786.0 ms … 870.7 ms
```
For this particular example, `fd` is approximately nine times faster than `find -iregex`
and about five times faster than `find -iname`. By the way, both tools found the exact
same 20880 files :smile:.

Finally, let's run `fd` without `--hidden` and...
github  programming  github-starred-to-pinboard  crypto 
february 2018 by brianyang
fd is a simple, fast and user-friendly alternative to find.

While it does not seek to mirror all of find's powerful functionality, it provides sensible (opinionated) defaults for 80% of the use cases.

Features

• Convenient syntax: fd PATTERN instead of find -iname '*PATTERN*'.
• Colorized terminal output (similar to ls).
• It's fast (see benchmarks below).
• Smart case: the search is case-insensitive by default. It switches to case-sensitive if the pattern contains an uppercase character*.
• Ignores hidden directories and files, by default.
• Ignores patterns from your .gitignore, by default.
• Regular expressions.
• Unicode-awareness.
• The command name is 50% shorter* than find :-).
• Parallel command execution with a syntax similar to GNU Parallel.
search  tool  find  fd  is:repo 
january 2018 by cdzombak
A simple, fast and user-friendly alternative to find.
ack-grep  rgrep  ack  grep  find  ag  cli 
january 2018 by cramm
A simple, fast and user-friendly alternative to find.
hackernews  tools  unix 
january 2018 by briandk
chrisyip starred sharkdp/fd

via chrisyip’s Activity http://bit.ly/1T0UJAx
github 
january 2018 by chrisyip
A simple, fast and user-friendly alternative to find.
cli  find  filesystem  performance  rust 
january 2018 by euler
fd - A simple, fast and user-friendly alternative to find.
find  cli  alternative  search  file 
november 2017 by reorx
fd - A simple, fast and user-friendly alternative to find.
cli  linux  find  rust  search  terminal 
october 2017 by e2b
fd - A simple, fast and user-friendly alternative to find.
find  search  brew 
october 2017 by gorekee
fd - A simple, fast and user-friendly alternative to find.
search  rust  find  cli 
october 2017 by geetarista
A simple, fast and user-friendly alternative to find.
october 2017 by nudeldud
fd - A simple, fast and user-friendly alternative to find.
rust 
october 2017 by nanoxd
A simple, fast and user-friendly alternative to find.
cli  find  search 
october 2017 by segfault
fd is a simple, fast and user-friendly alternative to find.

While it does not seek to mirror all of find's powerful functionality, it provides sensible (opinionated) defaults for 80% of the use cases.
find  search  tools  rust  terminal  shell  cli 
october 2017 by awhite
sharkdp/fd: A simple, fast and user-friendly alternative to find.
from twitter
october 2017 by jackysee
joeybaker starred sharkdp/fd
from:github  from:IFTTT 
october 2017 by joeybaker
waako starred sharkdp/fd Saved: October 10, 2017 at 06:14AM

waako starred sharkdp/fd
github  needs-tags 
october 2017 by waako
A simple, fast and user-friendly alternative to find.
github  search  tools 
october 2017 by lucian
joshuarubin starred sharkdp/fd on
GitHub  from twitter
october 2017 by joshuarubin
fd - A simple, fast and user-friendly alternative to find.
find  fd  cli  xterm  files 
october 2017 by diff_sky
via wjlroe’s Activity http://ift.tt/1MLjaFx
IFTTT  github 
october 2017 by wjlroe
dreikanter starred sharkdp/fd
from:ifttt  github 
october 2017 by e30chris
antigremlin starred sharkdp/fd
from:ifttt  github 
october 2017 by antigremlin
dreikanter starred sharkdp/fd
from:ifttt  github 
october 2017 by nicferrier
matthewmueller starred sharkdp/fd
github  development 
october 2017 by mattmueller
find 替代品,比 find 更快,且对用户更友好,还支持高亮输出,使用 Rust 开发而成。
find  cli 
october 2017 by xuxiaodong
fd - A simple, fast and user-friendly alternative to find.
october 2017 by mtelesha
fd - A simple, fast and user-friendly alternative to find.
find  cli  tool  rust  search  filesystem 
september 2017 by victorfuertes
I am a fan of this trend to replace unix utilities with faster versions with modern ux in rust
from twitter
june 2017 by indirect