Skip to content
Myr

docs(exec): explain repeated commands for each file

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Peder Bergan · committed by Thayne McCombs · parent 468cd43 · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:doc/fd.1+3 added-2 removed
446 unmodified lines
447- not to fd.448It is therefore recommended to place the \-x/\-\-exec option last. Alternatively, you can supply449a ';' argument to end the argument list and continue with more fd options.450Most shells require ';' to be escaped: '\\;'.451This option can be specified multiple times. Commands for the same search result run sequentially452in the order they are given. In that case, you must supply a ';' argument for all but the last command.451Specify this option multiple times to run several commands for each file or directory found.452For each file or directory, fd runs these commands one after another in the order they appear453on the command line. In that case, you must supply a ';' argument for all but the last command.454When running in parallel, fd buffers command output and prints it together for each search result,455without interleaving it with command output for other results.456457The order in which different search results are processed and their output is printed is not
131 unmodified lines
modified:src/cli.rs+2 added-1 removed
897 unmodified lines
898 The order in which different search results are processed and their output is printed is not guaranteed, even with --threads=1. \899 All positional arguments following --exec are considered to be arguments to the command - not to fd. \900 It is therefore recommended to place the '-x'/'--exec' option last. \901 Use '\\;' to terminate the command template if you need to continue passing fd arguments afterwards.\n\n\902 This option can be specified multiple times. Commands for the same search result run sequentially in the order they are given. \902 Specify this option multiple times to run several commands for each file or directory found. \903 For each file or directory, fd runs these commands one after another in the order they appear on the command line. \904 Terminate each command except the last with '\\;'. \905 When running in parallel, fd buffers command output and prints it together for each search result, \906 without interleaving it with command output for other results.\n\n\907 The following placeholders are substituted before the command is executed:\n \
71 unmodified lines