mirror of
https://github.com/sharkdp/fd.git
synced 2026-10-11 22:30:00 +00:00
docs(exec): explain repeated commands for each file
This commit is contained in:
committed by
Thayne McCombs
parent
468cd4371a
commit
5bbfa3eb1d
@@ -448,8 +448,9 @@ Note that all subsequent positional arguments are considered to be arguments to
|
||||
It is therefore recommended to place the \-x/\-\-exec option last. Alternatively, you can supply
|
||||
a ';' argument to end the argument list and continue with more fd options.
|
||||
Most shells require ';' to be escaped: '\\;'.
|
||||
This option can be specified multiple times. Commands for the same search result run sequentially
|
||||
in the order they are given. In that case, you must supply a ';' argument for all but the last command.
|
||||
Specify this option multiple times to run several commands for each file or directory found.
|
||||
For each file or directory, fd runs these commands one after another in the order they appear
|
||||
on the command line. In that case, you must supply a ';' argument for all but the last command.
|
||||
When running in parallel, fd buffers command output and prints it together for each search result,
|
||||
without interleaving it with command output for other results.
|
||||
|
||||
|
||||
+2
-1
@@ -899,7 +899,8 @@ impl clap::Args for Exec {
|
||||
All positional arguments following --exec are considered to be arguments to the command - not to fd. \
|
||||
It is therefore recommended to place the '-x'/'--exec' option last. \
|
||||
Use '\\;' to terminate the command template if you need to continue passing fd arguments afterwards.\n\n\
|
||||
This option can be specified multiple times. Commands for the same search result run sequentially in the order they are given. \
|
||||
Specify this option multiple times to run several commands for each file or directory found. \
|
||||
For each file or directory, fd runs these commands one after another in the order they appear on the command line. \
|
||||
Terminate each command except the last with '\\;'. \
|
||||
When running in parallel, fd buffers command output and prints it together for each search result, \
|
||||
without interleaving it with command output for other results.\n\n\
|
||||
|
||||
Reference in New Issue
Block a user