<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Neat Find Trick with Wildcards</title>
	<atom:link href="http://www.thelinuxdaily.com/2010/04/neat-find-trick-with-wildcards/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thelinuxdaily.com/2010/04/neat-find-trick-with-wildcards/</link>
	<description>Tutorials, Guides, Tips, and Tricks from Everyday Experiences</description>
	<lastBuildDate>Fri, 20 Jan 2012 15:14:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Derek@TheDailyLinux</title>
		<link>http://www.thelinuxdaily.com/2010/04/neat-find-trick-with-wildcards/#comment-591</link>
		<dc:creator>Derek@TheDailyLinux</dc:creator>
		<pubDate>Thu, 15 Apr 2010 01:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thelinuxdaily.com/?p=1565#comment-591</guid>
		<description>Here&#039;s an email I received from Jim about the use of the term &quot;Regular Expressions&quot;:

&lt;blockquote&gt;
Hi Derek,

Sorry to be pedantic, but the file matching expressions used by find and ls are not strictly &quot;regularly expressions&quot; - they are wildcards.
See the wikipedia entry at

 http://en.wikipedia.org/wiki/Regular_expression

Last para, before the contents...

&quot;Many modern computing systems provide wildcard characters in matching filenames from a file system. This is a core capability of many command-line shells and is also known as globbing. Wildcards differ from regular expressions in generally only expressing very limited forms of alternatives.&quot;

In fact Regex are far far more powerful, and I often run find like

 find . -type f &#124; grep &#039;.[ch]$&#039;

which would do in a regex what find does by globbing. In this case the globbing is a lot easier, but

 find . type f &#124; grep -i &quot;ansi&quot;

would find that file I&#039;m sure I had about ANSI command strings but couldn&#039;t remember if I&#039;d capitalised ANSI or not - it outputs any filename with &quot;ansi&quot; (in any case) in the name.

In fact GNU find has the options &#039;-regex&#039; and &#039;-iregex&#039; for actually doing regex matching on filenames (-iregex is the case insensitive version).
But busybox&#039;s find doesn&#039;t have this, or earlier BSD versions.

cheers
Jim
&lt;/blockquote&gt;

</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an email I received from Jim about the use of the term &#8220;Regular Expressions&#8221;:</p>
<blockquote><p>
Hi Derek,</p>
<p>Sorry to be pedantic, but the file matching expressions used by find and ls are not strictly &#8220;regularly expressions&#8221; &#8211; they are wildcards.<br />
See the wikipedia entry at</p>
<p> <a href="http://en.wikipedia.org/wiki/Regular_expression" rel="nofollow">http://en.wikipedia.org/wiki/Regular_expression</a></p>
<p>Last para, before the contents&#8230;</p>
<p>&#8220;Many modern computing systems provide wildcard characters in matching filenames from a file system. This is a core capability of many command-line shells and is also known as globbing. Wildcards differ from regular expressions in generally only expressing very limited forms of alternatives.&#8221;</p>
<p>In fact Regex are far far more powerful, and I often run find like</p>
<p> find . -type f | grep &#8216;.[ch]$&#8217;</p>
<p>which would do in a regex what find does by globbing. In this case the globbing is a lot easier, but</p>
<p> find . type f | grep -i &#8220;ansi&#8221;</p>
<p>would find that file I&#8217;m sure I had about ANSI command strings but couldn&#8217;t remember if I&#8217;d capitalised ANSI or not &#8211; it outputs any filename with &#8220;ansi&#8221; (in any case) in the name.</p>
<p>In fact GNU find has the options &#8216;-regex&#8217; and &#8216;-iregex&#8217; for actually doing regex matching on filenames (-iregex is the case insensitive version).<br />
But busybox&#8217;s find doesn&#8217;t have this, or earlier BSD versions.</p>
<p>cheers<br />
Jim
</p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>

