From f2eb1be678341910b0fb5dbfc86f4e7bc83422e4 Mon Sep 17 00:00:00 2001 From: tacoda Date: Sat, 20 Nov 2021 11:55:51 -0500 Subject: [PATCH] Add an example of the -X option using rg --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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