Crates.io | locate |
lib.rs | locate |
version | 0.1.1 |
source | src |
created_at | 2020-03-20 18:32:49.108424 |
updated_at | 2020-03-21 19:03:47.226632 |
description | A tool to search all the occurrences of a string in all the files in directory |
homepage | |
repository | https://github.com/pr4k/locate |
max_upload_size | |
id | 220759 |
size | 441,087 |
Key Features • Usage • Test Run • Demo • Installation • To-Do • License
A recursive Search Tool written in Rust
How many times have you gone through files in search of a string, or finding origin of a function.
Locate is a tool written in Rust which goes through each file and gives exact location of the string in the file.
Works on Windows, MacOS and Linux
Blazing Fast
Finds String Deep Inside Directory Structure
# Clone the repo
git clone https://github.com/pr4k/locate
# Build the project
cargo build --release
It will create a binary in target/release
, copy it to /usr/bin
and you are good to go.
Or simply do
cargo install locate
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.
➜ ~ 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
Click on image to get a Asciinema shot: