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.
I looked through the Dirent.h documentation for the directory indexing.
clang grep.c -o grep
./grep [a-z] ./home/matt/filename.txt # (1) Regular Expression String, (2) File name
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"
Ken Thompson for making the ed editor (: