<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Grep on AminBytes</title><link>https://aminbytes.dev/tags/grep/</link><description>Recent content in Grep on AminBytes</description><generator>Hugo</generator><language>en</language><atom:link href="https://aminbytes.dev/tags/grep/index.xml" rel="self" type="application/rss+xml"/><item><title>Search text files using regular expressions</title><link>https://aminbytes.dev/bytes/gnu-and-unix-commands/regular-expressions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://aminbytes.dev/bytes/gnu-and-unix-commands/regular-expressions/</guid><description>&lt;p&gt;Sooner or later you need to find something in a pile of text: every failed login in a log, every config line that isn&amp;rsquo;t a comment, every email address in a dump. Searching for a fixed word isn&amp;rsquo;t enough when the thing you want &lt;em&gt;varies&lt;/em&gt;. A &lt;strong&gt;regular expression&lt;/strong&gt; (regex) is a pattern that describes text: &amp;ldquo;a line that starts with a date&amp;rdquo;, &amp;ldquo;three digits, a dash, four digits&amp;rdquo;, &amp;ldquo;either ERROR or WARN&amp;rdquo;.&lt;/p&gt;</description></item></channel></rss>