A lightweight implementation of the grep command written in Bash, designed to search for patterns in text files.
- Case-insensitive search for patterns in text files
- Display line numbers for matches (
-noption) - Invert match to show non-matching lines (
-voption) - Colorized output to highlight matches
- Support for options in any position in the command line
# Clone the repository
git clone https://github.com/Ziad-Rohayiem/fawry-tasks.git
# Make the script executable
chmod +x mygrep.sh
# Usage
./mygrep.sh [Options] pattern filename