<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/grep/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 18:48:26 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/grep/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>Rust 学习之路─第十二章：制作 grep 命令行程序</title><link>https://magiclen.org/cn/rust-grep/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
我们要运用目前为止学到的 Rust 编程语言知识来制作出属于我们的「grep」(globally search a regular expression and print)程序。简单来说，grep 程序可以用来寻找特定文件中的特定字符串。grep 程序可以透过命令行参数来传入文件路径和要寻找的字符串，运行的时候就可以读取这个文件中所有包含要寻找的字符串的该行数据，并将其印出。]]></description><category>研究分享</category><category>Rust</category><category>Rust</category><category>Rust 学习之路</category><category>grep</category><guid>https://magiclen.org/cn/rust-grep</guid><pubDate>Fri, 22 Jun 2018 09:00:46 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>