Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f58e8f

Browse files
committed
Update man page
1 parent f1ab443 commit 7f58e8f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

doc/fd.1

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Examples:
190190
\-\-changed-before "2018-10-27 10:00:00"
191191
\-\-change-older-than 2weeks
192192
.TP
193-
.BI "\-x, \-\-exec " command "\fR [args...] ;"
193+
.BI "\-x, \-\-exec " command
194194
Execute
195195
.I command
196196
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
206206
.IP {/.}
207207
basename without file extension
208208
.RE
209+
.TP
210+
.BI "\-X, \-\-exec-batch " command
211+
Execute
212+
.I command
213+
with all search results at once.
214+
A single occurence of the following placeholders is authorized and substituted by the paths derived from the search results before the command is executed:
215+
.RS
216+
.IP {}
217+
path
218+
.IP {/}
219+
basename
220+
.IP {//}
221+
parent directory
222+
.IP {.}
223+
path without file extension
224+
.IP {/.}
225+
basename without file extension
226+
.RE
209227
.SH ENVIRONMENT
210228
.TP
211229
.B LS_COLORS
@@ -221,5 +239,8 @@ $ fd nginx /var/log
221239
.TP
222240
.RI "Find all Python files (all files with the extention " .py ") in the current directory:"
223241
$ fd -e py
242+
.TP
243+
.RI "Open all search results with vim:"
244+
$ fd pattern -X vim
224245
.SH SEE ALSO
225246
.BR find (1)

0 commit comments

Comments
 (0)