You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/fd.1
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ Examples:
190
190
\-\-changed-before "2018-10-27 10:00:00"
191
191
\-\-change-older-than 2weeks
192
192
.TP
193
-
.BI"\-x, \-\-exec "command"\fR [args...] ;"
193
+
.BI"\-x, \-\-exec "command
194
194
Execute
195
195
.Icommand
196
196
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
206
206
.IP{/.}
207
207
basename without file extension
208
208
.RE
209
+
.TP
210
+
.BI"\-X, \-\-exec-batch "command
211
+
Execute
212
+
.Icommand
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
209
227
.SH ENVIRONMENT
210
228
.TP
211
229
.BLS_COLORS
@@ -221,5 +239,8 @@ $ fd nginx /var/log
221
239
.TP
222
240
.RI"Find all Python files (all files with the extention ".py") in the current directory:"
0 commit comments