mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 09:28:25 +01:00
Add an example of the -X option using rg
This commit is contained in:
parent
b211ded5de
commit
f2eb1be678
1 changed files with 5 additions and 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`
|
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`.
|
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:
|
Convert all `*.jpg` files to `*.png` files:
|
||||||
``` bash
|
``` bash
|
||||||
fd -e jpg -x convert {} {.}.png
|
fd -e jpg -x convert {} {.}.png
|
||||||
|
|
Loading…
Reference in a new issue