GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UyCode/mgrep: minigrep for search contents in file

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 

Repository files navigation

minigrep for search contents in file

A simple command line tool for searching for a string in a file

inspired by rust book and rust course

Usage

for development and testing usage

$ cargo run -- [OPTIONS] <search> <file>

for release and installed usage

$ mgrep [OPTIONS] <search> <file>

Options

  • -i : ignore case distinctions
  • -c : print word count in file (exclude dots and commas)
  • -h : print help message

Examples

$ mgrep "hello world" README.md
$ mgrep -i "hello world" README.md
$ mgrep -c  README.md

About

minigrep for search contents in file

Topics

grepminiminigreprust

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.