Skip to content

Ptyg/FileWordFinder_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Word finder

Will help you to find word in directory

Code | Request Feature

Table of Contents
  1. About The Project
  2. Installation
  3. Usage
  4. Contributing
  5. License

About The Project

Utility that searches for a specific word in all files in directory, or you can just put a path to file - this also works.

(back to top)

Installation

Clone the repository:

git clone https://github.com/Ptyg/FileWordFinder_rust.git

And run the following command in the project directory:

cargo build --release

# or debug, if you want to
cargo build --debug

This will build the program and create an executable in the target/release ( target/debug ) directory.

(back to top)

Usage

To find word in directory run the following command:

finder {word} {directory}

Replace {word} with the word you want to search for and {directory} with the directory you want to search in.

For example, to search for the word "hello" in the directory /home/user/Documents, run the following command:

finder hello /home/user/Documents

To find word in specific file run the same command but write full path to file:

finder hello /home/user/Documents/myFile.txt

Finder also supports the following optional arguments:

  • -h or --help: Prints help information
  • -V or --version: Prints version information
  • -t or --filetype: Specifies the type of file in which to search for a word
  • -p or --path: Sets path to file or directory
  • -w or --word: Sets word to find

(back to top)

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b { branch_name })
  3. Commit your Changes (git commit -m 'Add an amazing feature')
  4. Push to the Branch (git push origin { branch_name })
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Releases

No releases published

Packages

No packages published

Languages