Skip to content
Myr

Modify example to a realistic use case

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent f2eb1be · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:README.md+2 added-2 removed
192 unmodified lines
193```194This pattern is so useful that `fd` provides a shortcut. You can use the `-l`/`--list-details`195option to execute `ls` in this way: `fd … -l`.196197Another example of the `-X` option can be shown with `rg`, using all the search results as arguments:197The `-X` option is also useful when combining `fd` with [ripgrep](https://github.com/BurntSushi/ripgrep/) (`rg`) in order to search within a certain class of files, like all C++ source files:198```bash199fd … -X rg -i target199fd -e cpp -e cxx -e h -e hpp -X rg 'std::cout'200```201202Convert all `*.jpg` files to `*.png` files:203``` bash
487 unmodified lines