» Make grep CLI App in Rust » 1. Introduction » 1.1 Preparation

Preparation

Install Rust

See How to install Rust?.

Note: This project uses rustc 1.75.0.

Pick an editor

Pick your favorite editor or use Visual Studio Code.

Learn Rust basics

If you're not familiar with Rust, you may try this tutorial: "Quick Introduction to Rust."

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