mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Find Files With fd as a unix til
This commit is contained in:
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
For a steady stream of TILs from a variety of rocketeers, checkout
|
For a steady stream of TILs from a variety of rocketeers, checkout
|
||||||
[til.hashrocket.com](https://til.hashrocket.com/).
|
[til.hashrocket.com](https://til.hashrocket.com/).
|
||||||
|
|
||||||
_794 TILs and counting..._
|
_795 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -707,6 +707,7 @@ _794 TILs and counting..._
|
|||||||
- [Do Not Overwrite Existing Files](unix/do-not-overwrite-existing-files.md)
|
- [Do Not Overwrite Existing Files](unix/do-not-overwrite-existing-files.md)
|
||||||
- [Exclude A Directory With Find](unix/exclude-a-directory-with-find.md)
|
- [Exclude A Directory With Find](unix/exclude-a-directory-with-find.md)
|
||||||
- [File Type Info With File](unix/file-type-info-with-file.md)
|
- [File Type Info With File](unix/file-type-info-with-file.md)
|
||||||
|
- [Find Files With fd](unix/find-files-with-fd.md)
|
||||||
- [Find Newer Files](unix/find-newer-files.md)
|
- [Find Newer Files](unix/find-newer-files.md)
|
||||||
- [Forward Multiple Ports Over SSH](unix/forward-multiple-ports-over-ssh.md)
|
- [Forward Multiple Ports Over SSH](unix/forward-multiple-ports-over-ssh.md)
|
||||||
- [Get Matching Filenames As Output From Grep](unix/get-matching-filenames-as-output-from-grep.md)
|
- [Get Matching Filenames As Output From Grep](unix/get-matching-filenames-as-output-from-grep.md)
|
||||||
|
|||||||
27
unix/find-files-with-fd.md
Normal file
27
unix/find-files-with-fd.md
Normal 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.
|
||||||
Reference in New Issue
Block a user