Skip to content
Myr

Merge pull request #1717 from tmccombs/doc-better

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

Doc better

authored by Thayne McCombs · committed by GitHub · parents 494eef0, 0ada245 · Browse files · 2 files+15 added−3 removed
This commit

State

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

Diff stats

2 files+15 added−3 removed

  • other:+15 added−3 removed

2 files+15 added−3 removed

modified:doc/fd.1+12 added-2 removed
16 unmodified lines
17.RB [ \-j18.IR num ]19.RB [ \-x20.IR cmd ]21.RI [ pattern ]22.RI [ path... ]21.RI [ pattern22.RI [ path... ]]23.SH DESCRIPTION24.B fd25is a simple, fast and user-friendly alternative to26.BR find (1).
6 unmodified lines
33By default34.B fd35will exclude hidden files and directories, as well as any files that match gitignore rules36or ignore rules in .ignore or .fdignore files.37.P38If you wish to search all files in a specific directory, you can use '' or . as the search pattern,39to match all files. Or you can use the '\-\-search\-path' option to specify the path(s) instead of40the positional parameter.41.P42Options may be given anywhere on the command line.43.SH OPTIONS44.TP45.B \-H, \-\-hidden46Include hidden files and directories in the search results
430 unmodified lines
477file in a batch and passed as separate arguments.478479If no placeholder is present, an implicit "{}" at the end is assumed.480481Like \-\-exec, subsequent arguments are assumed to be part of482.I command483until either the end of command arguments or a ';' argument. See above.484485Like \-\-exec, this can be used multiple times, in which case each command will be run in486the order given.487488Examples:
79 unmodified lines
modified:README.md+3 added-1 removed
296 unmodified lines
297This is the output of `fd -h`. To see the full set of command-line options, use `fd --help` which298also includes a much more detailed help text.299300```301Usage: fd [OPTIONS] [pattern] [path]...301Usage: fd [OPTIONS] [pattern [path...]]302303Arguments:304 [pattern] the search pattern (a regular expression, unless '--glob' is used; optional)305 [path]... the root directories for the filesystem search (optional)
28 unmodified lines
334 -h, --help Print help (see more with '--help')335 -V, --version Print version336```337338Note that options can be given after the pattern and/or path as well.339340## Benchmark341342Let's search my home folder for files that end in `[0-9].jpg`. It contains ~750.000343subdirectories and about a 4 million files. For averaging and statistical analysis, I'm using
394 unmodified lines