<commit_before>.TH FD 1 fd-4.0.0
.SH NAME
fd \- find files
.BR find (1)
.SH SYNOPSIS
.B spt
.RB [ \-HIsaLp0hV ]
.RB [ \- d
.IR depth ]
.RB [ \-t
.IR filetype ]
.RB [ \-e
.IR ext ]
.RB [ \-c
.IR when ]
.RB [ \-j
.IR num ]
.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\-gitignore
Do not respect any
.BR gitignore (5)
files.
.TP
.B \-s, \-\-case\-insensitive
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 path.
.TP
.B \-0, \-\-print0
Print results followed by a 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 use color for the pattern match output:
.RS
.IP auto
Show colors only when standard output is connected to a terminal. (default)
.IP never
Do not use colorized output.
.IP always
Always use colorized output.
.RE
.TP
.BI "\-j, \-\-threads " num
Specifies number of threads to use for searching. (default: number of available
CPU cores)
.SH ENVIRONMENT
.TP
LS_COLORS
.BR "fd"'s
color codes for search results.
.SH EXAMPLES
.TP
.RI "Find the specific log files in " /var/log .
$ fd nginx.log /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)<commit_msg>Shorten man page with some fixes<commit_after>.TH FD 1 fd-4.0.0
.SH NAME
fd \- find files
.BR find (1)
.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)
{'fraction_non_alphanumeric': 0.1502958579881657, 'fraction_numerical': 0.00544378698224852, 'mean_word_length': 2.5482787573467673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '269291', 'n_tokens_mistral': 1641, 'n_tokens_neox': 1568, 'n_words': 668}