Skip to content

Various language implementations of a grep like program

Notifications You must be signed in to change notification settings

arielpeltz/grepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grepy

This project implements a simple grep like program in multiple languages. The program needs to get as input:

  • regex
  • list of files, can be empty or contain only '-'
  • mutually exclusive optional parameters for formatting

The program will look for the pattern in the files. For each line that matches the program will print the filename, line number and the line formatted in one of the format options

  • -c / --color: highlight the matching part in color
  • -u / --underline: mark the match with '^' chars below it
  • -m / --machine: (default) print in machine format - [file name]:[line number]:[match text]

About

Various language implementations of a grep like program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published