Skip to content

jason1105/minigrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

介绍

跟着 Rust 官方的 “The Rust Programing Language” 中的 第12章 编写的一个小程序, 使用指定的关键字过滤文本文件内容, 并输出相关的行.

使用

准备 Rust 环境

然后下载代码

git clone https://github.com/jason1105/minigrep.git

尝试运行一下

cd minigrep
cargo run <query> <filename>
# 例如 cargo run to poem.txt

还可以编译成 exe

cargo build --release

About

一个用来搜索文本中的内容的小程序.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages