Skip to content

Commit

Permalink
Add description of multiple --exec to man page
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs authored and sharkdp committed Mar 8, 2022
1 parent f27332e commit e54e352
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/fd.1
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,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, in which case all commands are run for each
file found, in the order they are provided. In that case, you must supply a ';' argument for
all but the last commands.

The following placeholders are substituted before the command is executed:
.RS
Expand Down Expand Up @@ -394,6 +397,9 @@ basename without file extension

If no placeholder is present, an implicit "{}" at the end is assumed.

Like \-\-exec, this can be used multiple times, in which case each command will be run in
the order given.

Examples:

- Find all test_*.py files and open them in your favorite editor:
Expand Down

0 comments on commit e54e352

Please sign in to comment.