Skip to content

matthieutran/ed-to-grep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ed-to-grep

Matthieu Tran MoWe 4PM-5:50PM

A project for my C Programming class (CPSC 223C). We were instructed to refactor the existing ed.c editor code into a mini version of grep.

Resources Used

I looked through the Dirent.h documentation for the directory indexing.

Usage

clang grep.c -o grep
./grep [a-z] ./home/matt/filename.txt # (1) Regular Expression String, (2) File name

Using Multiple Files

clang grep.c -o grep
./grep [^a-z] "./*.txt"
./grep [a-z] "./home/matt/all_*.csv" # The filename has to begin with "all_" and end with ".csv"

License

GNU GPLv3

Credits

Ken Thompson for making the ed editor (:

About

Turning ed editor into a working mini-grep

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages