A simple grep implementation in Go. Inspired by Go Bootcamp here https://one2n.io/go-bootcamp/go-projects/grep-in-go
To build the application, run the following command:
go build -o grep main.gogrep <pattern> <file_path>Example:
grep "error" logs.txtgrep <pattern> <directory_path>Example:
grep "error" ./logs- If a directory is provided as input, all files within its subdirectories are also considered.
- All files in the given directory are assumed to be text files.