<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[常用SHELL正则表达式举例]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[SHELL]]></category>
<pubDate>Tue, 14 Aug 2007 15:35:17 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>^ 对行首<br/>$ 对行尾<br/>^the对以the开头行<br/>&#91;Ss&#93;igna&#91;lL&#93;对匹配单词signal、signaL、<br/>Signal、SignaL<br/>&#91;Ss&#93;igna&#91;lL&#93;&#92;. 对同上，但加一句点<br/>&#91;mayMAY&#93; 对包含may大写或小写字母的行<br/>^USER$ 对只包含USER的行<br/>&#91;tty&#93;$ 对以tty结尾的行<br/>&#92;. 对带句点的行<br/>^d..x..x..x 对用户、用户组及其他用户组成员有可执行权限的目录<br/>^&#91;^l&#93; 对排除关联目录的目录列表<br/>&#91;.*0&#93; 对0之前或之后加任意字符<br/>&#91;000*&#93; 对000或更多个<br/>&#91;iI&#93; 对大写或小写I<br/>&#91;iI&#93; &#91;nN&#93; 对大写或小写i或n<br/>&#91;^$&#93; 对空行<br/>&#91;^.*$&#93; 对匹配行中任意字符串<br/>^......$ 对包括6个字符的行<br/>&#91;a-zA-Z&#93; 对任意单字符<br/>&#91;a-z&#93;&#91;a-z&#93;* 对至少一个小写字母<br/>&#91;^0-9&#92;$&#93; 对非数字或美元标识<br/>&#91;^0-0A-Za-z&#93; 对非数字或字母<br/>&#91;123&#93; 对1到3中一个数字<br/>&#91;Dd&#93;evice 对单词device或Device<br/>De..ce 对前两个字母为De，后跟两个任意字符，最后为ce<br/>&#92;^q对以^q开始行<br/>^.$ 对仅有一个字符的行<br/>^&#92;.&#91;0-9&#93;&#91;0-9&#93; 对以一个句点和两个数字开始的行<br/>&#039;&quot;Device&quot;&#039; 对单词device<br/>De&#91;Vv&#93;ice&#92;. 对单词Device或deVice<br/>&#91;0-9&#93;&#92;&#123;2&#92;&#125;-&#91;0-9&#93;&#92;&#123;2&#92;&#125;-&#91;0-9&#93;&#92;&#123;4&#92;&#125; 对日期格式dd-mm-yyyy<br/>&#91;0-9&#93;&#92;&#123;3&#92;&#125;&#92;.&#91;0-9&#93;&#92;&#123;3&#92;&#125;&#92;.&#91;0-9&#93;&#92;&#123;3&#92;&#125;&#92;.&#91;0-9&#93;&#92;&#123;3&#92;&#125;对IP地址格式nnn.nnn.nnn.nnn<br/>&#91;^.*$&#93; 对匹配任意行<br/></div><br/>Tags - <a href="https://blog.liuts.com/tags/shell/" rel="tag">shell</a> , <a href="https://blog.liuts.com/tags/%25E6%25AD%25A3%25E5%2588%2599%25E8%25A1%25A8%25E8%25BE%25BE%25E5%25BC%258F/" rel="tag">正则表达式</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] 常用SHELL正则表达式举例]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>