Git Product home page Git Product logo

locate's Introduction


Release Language Passing Stars Issues Forks

Key FeaturesUsageTest RunDemoInstallationTo-DoLicense

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.


Key Features

  • Works on Windows, MacOS and Linux

  • Blazing Fast

    speed

  • Finds String Deep Inside Directory Structure


Installation

# 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


Give it a Test Run

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.


Usage

~ 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


Demo

Click on image to get a Asciinema shot:


TO-DO

  • Add regex support for the search string
  • Control Folder depth for search
  • Provide option to replace the searched word by another

License

GitHub license


locate's People

Contributors

pr4k avatar vschwaberow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.