diff options
author | tacoda <tacoda@hey.com> | 2021-11-20 11:55:51 -0500 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-11-26 19:31:06 +0100 |
commit | f2eb1be678341910b0fb5dbfc86f4e7bc83422e4 (patch) | |
tree | d1cf39d1be8bc30481e333c32e43b44494851db1 | |
parent | b211ded5dee8809129a4c61d4a58289974c6e12d (diff) |
Add an example of the -X option using rg
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |