adarshnin / grep

Grep command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grep

grep command in C

I have implemented 12 options (-i, -c, -v, -h, -H, -w, -b, -m, -q, -r, -f, -e) of the grep command as my DSA project.

I have also implemented the combinations of the above options.

I have used array of Structures for storing patterns and their indices for -f and -e option.

Test Files contains some files and directories on which the commands were tested.

test.txt contains a summary of commands which were tested. User can test any other combination of the above options on it.

dep.c contains the function definitions which are used in grep.c.

./run is the executable file.

About

Grep command

License:GNU General Public License v3.0


Languages

Language:C 99.4%Language:Makefile 0.6%