1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Add Find Files With fd as a unix til

This commit is contained in:
jbranchaud
2019-03-25 11:47:16 -05:00
parent c2735bc287
commit b14a024fc2
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# Find Files With fd
The [`fd` command](https://github.com/sharkdp/fd) is an open-source utility
written in Rust. It is a fast and user-friendly way to find files -- as
compared to the standard `find` command.
You can recursively look in the current directory for a file with `git` in
the name like so:
```bash
$ fd git
```
If you have a `.gitignore` file, it will ignore those files and directories
by default.
Providing a second argument, `fd` will start its recursive search from that
directory.
```bash
$ fd git ~
```
Here, `fd` will look for filenames with `git` everywhere within my home
directory.
You can `brew install fd` to get the command and `man fd` for more details.