/chibigrep/README.md
https://github.com/rhysd/misc · Markdown · 31 lines · 21 code · 10 blank · 0 comment · 0 complexity · 9874abee048861b66dcff2ab425b1b92 MD5 · raw file
- A minimal example for [ripgrep](https://github.com/BurntSushi/ripgrep) as a library for [Rust LT Online 5](https://rust.connpass.com/event/228732/).
- ## Build
- ```
- cargo build --release
- cp ./target/release/chibigrep /usr/local/bin/
- ```
- ## Usage
- ```
- chibigrep pattern [path...]
- ```
- ## Example
- ```sh
- # Search \w+ in all test.txt
- chibigrep '\w+' ./test.txt
- # Search \w+ in all files in ./dir1 and ./dir2 recursively
- chibigrep '\w+' ./dir1 ./dir2
- # Search \w+ in all files in the current directory recursively
- chibigrep '\w+'
- ```
- ## License
- Public domain.