summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortacoda <tacoda@hey.com>2021-11-20 11:55:51 -0500
committerDavid Peter <sharkdp@users.noreply.github.com>2021-11-26 19:31:06 +0100
commitf2eb1be678341910b0fb5dbfc86f4e7bc83422e4 (patch)
treed1cf39d1be8bc30481e333c32e43b44494851db1
parentb211ded5dee8809129a4c61d4a58289974c6e12d (diff)
Add an example of the -X option using rg
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index e0fc261..df80414 100644
--- a/README.md
+++ b/README.md
@@ -194,6 +194,11 @@ fd … -X ls -lhd --color=always
This pattern is so useful that `fd` provides a shortcut. You can use the `-l`/`--list-details`
option to execute `ls` in this way: `fd … -l`.
+Another example of the `-X` option can be shown with `rg`, using all the search results as arguments:
+```bash
+fd … -X rg -i target
+```
+
Convert all `*.jpg` files to `*.png` files:
``` bash
fd -e jpg -x convert {} {.}.png