-
-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fd.1 man page, close #77 #125
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
.TH FD 1 fd-4.0.0 | ||
.SH NAME | ||
fd \- find files | ||
.BR find (1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this for? is it a link to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this is a link to find since it's on the current description. |
||
.SH SYNOPSIS | ||
.B fd | ||
.RB [ \-HIsaLp0hV ] | ||
.RB [ \- d | ||
.IR depth ] | ||
.RB [ \-t | ||
.IR filetype ] | ||
.RB [ \-e | ||
.IR ext ] | ||
.RB [ \-c | ||
.IR when ] | ||
.RB [ \-j | ||
.IR num ] | ||
.RB [ \-x | ||
.IR exec ] | ||
.RI [ pattern ] | ||
.RI [ path ] | ||
.SH DESCRIPTION | ||
.B fd | ||
is a simple, fast and user-friendly alternative to | ||
.BR find (1). | ||
.SH OPTIONS | ||
.TP | ||
.B \-H, \-\-hidden | ||
Search hidden files and directories. | ||
.TP | ||
.B \-I, \-\-no\-ignore | ||
Do not respect any | ||
.BR gitignore (5) | ||
files. | ||
.TP | ||
.B \-s, \-\-case\-sensitive | ||
Perform a case-sensitive search (default: smart case). | ||
.TP | ||
.B \-a, \-\-absolute\-path | ||
Show absolute instead of relative paths. | ||
.TP | ||
.B \-L, \-\-follow | ||
Dereference all symbolic links encountered. | ||
.TP | ||
.B \-p, \-\-full\-path | ||
Match | ||
.I pattern | ||
against full | ||
.IR path . | ||
.TP | ||
.B \-0, \-\-print0 | ||
Print results followed by null character instead of newlines. | ||
.TP | ||
.B \-h, \-\-help | ||
Prints help information. | ||
.TP | ||
.B \-V, \-\-version | ||
Prints version information. | ||
.TP | ||
.BI "\-d, \-\-max\-depth " levels | ||
Limit directory traversal to at most | ||
.I levels | ||
of depth. | ||
.TP | ||
.BI "\-t, \-\-type " c | ||
Filter search by type: | ||
.RS | ||
.IP "f, file" | ||
regular files | ||
.IP "d, directories" | ||
directories | ||
.IP "s, symlink" | ||
symbolic links | ||
.RE | ||
.TP | ||
.BI "\-e, \-\-extension " ext | ||
Filter search results by file extension | ||
.IR ext . | ||
.TP | ||
.BI "\-c, \-\-color " when | ||
Declare | ||
.I when | ||
to colorize search results: | ||
.RS | ||
.IP auto | ||
Colorize output when standard output is connected to terminal. (default) | ||
.IP never | ||
Do not colorize output. | ||
.IP always | ||
Always colorize output. | ||
.RE | ||
.TP | ||
.BI "\-j, \-\-threads " num | ||
Number of threads to use for searching. (default: number of processing units | ||
available) | ||
.TP | ||
.BI "\-x, \-\-exec " command | ||
Execute | ||
.I command | ||
on each of the discovered path with the following tokens substituted: | ||
.RS | ||
.IP {} | ||
path | ||
.IP {.} | ||
path without extension | ||
.IP {/} | ||
basename of path | ||
.IP {//} | ||
parent of path | ||
.IP {/.} | ||
basename of path without extension | ||
.RE | ||
.SH ENVIRONMENT | ||
.TP | ||
.B LS_COLORS | ||
Determines how to colorize search results, see | ||
.BR dircolors (1) . | ||
.SH EXAMPLES | ||
.TP | ||
.RI "Find the specific log files in " /var/log . | ||
$ fd nginx /var/log | ||
.TP | ||
Find all Python files that ends with \(dq.py\(dq in the current directory. | ||
$ fd -e py | ||
.SH SEE ALSO | ||
.BR find (1) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this could be a little bit more detailed: "fd - find entries in the filesystem"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took that from the posix man page and sbase man page. Both uses that.