Preparation
Install Go
See How to install Go?.
Note: This project uses Go 1.20.4.
Pick an editor
Pick your favorite editor or use Visual Studio Code.
Learn Go basics
If you're not familiar with Go, you may try this tutorial: "Quick Introduction to Go."
What is a CLI app
See What is a CLI app?.
What is grep
The grep
command is a powerful Unix/Linux utility used for searching text patterns within files. It stands for "Global Regular Expression Print." grep
allows you to search for a specific pattern or regular expression in a file or a stream of text and print the lines that match the pattern.
Here's a basic usage example:
grep pattern file.txt