grep a substring in a file
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
grepscan.c

README.md

grepscan

grep a substring in a file


compile only configuration at the moment.

  1. edit grepscan.c
  2. change KEY to the string you want to find
  3. change KEYMATCH to the minimum characters of KEY you want matched
  4. compile with:
gcc -Wall -O3 -o grepscan grepscan.c
  1. run it as:
./grepscan /path/*

to search all files in /path.