mirror of
https://github.com/sharkdp/fd
synced 2024-10-01 13:33:55 +00:00
Update man page
This commit is contained in:
parent
f1ab443dd0
commit
7f58e8f706
23
doc/fd.1
vendored
23
doc/fd.1
vendored
|
@ -190,7 +190,7 @@ Examples:
|
|||
\-\-changed-before "2018-10-27 10:00:00"
|
||||
\-\-change-older-than 2weeks
|
||||
.TP
|
||||
.BI "\-x, \-\-exec " command "\fR [args...] ;"
|
||||
.BI "\-x, \-\-exec " command
|
||||
Execute
|
||||
.I command
|
||||
for each search result. The following placeholders are substituted by a path derived from the current search result:
|
||||
|
@ -206,6 +206,24 @@ path without file extension
|
|||
.IP {/.}
|
||||
basename without file extension
|
||||
.RE
|
||||
.TP
|
||||
.BI "\-X, \-\-exec-batch " command
|
||||
Execute
|
||||
.I command
|
||||
with all search results at once.
|
||||
A single occurence of the following placeholders is authorized and substituted by the paths derived from the search results before the command is executed:
|
||||
.RS
|
||||
.IP {}
|
||||
path
|
||||
.IP {/}
|
||||
basename
|
||||
.IP {//}
|
||||
parent directory
|
||||
.IP {.}
|
||||
path without file extension
|
||||
.IP {/.}
|
||||
basename without file extension
|
||||
.RE
|
||||
.SH ENVIRONMENT
|
||||
.TP
|
||||
.B LS_COLORS
|
||||
|
@ -221,5 +239,8 @@ $ fd nginx /var/log
|
|||
.TP
|
||||
.RI "Find all Python files (all files with the extention " .py ") in the current directory:"
|
||||
$ fd -e py
|
||||
.TP
|
||||
.RI "Open all search results with vim:"
|
||||
$ fd pattern -X vim
|
||||
.SH SEE ALSO
|
||||
.BR find (1)
|
||||
|
|
Loading…
Reference in a new issue