<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]MacBook/Linux下find 是区分大小写的，对于不区分大小写的写法]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Tue, 12 Oct 2010 07:16:13 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	MacBook下面：<br/>find . -name &quot;*VPN*&quot;<br/>find . -name &quot;*vpn*&quot;<br/>支持大小写字母通配符的写法是？<br/><br/><br/>在 macOS 下的 `find` 命令中，如果要同时支持大小写的文件名匹配，可以使用 `-iname` 参数。`-iname` 参数会忽略文件名的大小写。<br/><br/>你的命令可以改写为：<br/><br/>```bash<br/>find . -iname &quot;*vpn*&quot;<br/>```<br/><br/>这样，它会匹配所有包含 `vpn` 或 `VPN`（大小写均可）的文件或目录。<br/><br/>### 解释<br/>- `-name`：大小写敏感匹配。<br/>- `-iname`：大小写不敏感匹配。<br/><br/>如果你的系统需要其他更复杂的匹配，可以结合正则表达式或其他工具，例如 `grep`。<br/><br/><br/>成功实践：<br/>find . -iname &quot;*vpn*&quot;<br/>...VPN.docx<br/>...ssl-vpn-堡垒机.txt<br/><br/>===========================================================<br/><br/>默认情况下，find 是区分大小写的。对于不区分大小写的 find，将 -iname 测试替换为 -name 测试。<br/><br/>find downloads&nbsp;&nbsp;-iname &quot;*.gif&quot;<br/>downloads/.xvpics/Calendar05_enlarged.gif<br/>downloads/lcmgcfexsmall.GIF<br/><br/><br/><div class="code">&#91;~/find&#93;# ll<br/>total 12K<br/>-rw-r--r-- 1 root 5 2010-10-12 15:13 aa.txt<br/>-rw-r--r-- 1 root 5 2010-10-12 15:10 a.txt<br/>-rw-r--r-- 1 root 5 2010-10-12 15:10 A.TXT</div><br/>不区分大小写的find命令的写法：<br/><div class="code">&#91;~/find&#93;# find . -iname &quot;a.txt&quot;&nbsp;&nbsp;<br/>./A.TXT<br/>./a.txt</div>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]MacBook/Linux下find 是区分大小写的，对于不区分大小写的写法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>