How many times have you gone through files to find some string, or maybe want to know where you have used a name.
Locate is a tool written in Rust which goes through each file and gives exact location of the occurence of a name or string in the file.
``` bash
git clone https://github.com/pr4k/locate
cargo build --release
``
It will create a binary in
target/release, copy it to
/usr/bin` and you are good to go.
Don't want to clone the project, No worries!!
Go to the releases and downlaod the latest release, copy it to /usr/bin
that's all.
```bash
➜ ~ locate -h
Usage:
locate [OPTIONS]
Recursive string locater in files
Optional arguments:
-h,--help Show this help message and exit
-p,--path PATH Path to folder
-q,--query QUERY Query string to find
``
Try
locate -p /path/to/folder -q /string-to-be-searched`