<?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: UNIX Find A File Command</title> <atom:link href="http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: BB</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-63107</link> <dc:creator>BB</dc:creator> <pubDate>Mon, 03 Oct 2011 20:01:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-63107</guid> <description>I would like to find a &quot;file&quot; or &quot;link&quot; by a certain name. Is that possible with find ?
For example,  if I have the following file in the current directory, can &quot;find&quot; locate
the file by either &quot;pop&quot; or &quot;pullit&quot; ?
lrwxrwxrwx   1 bb       other          6 Oct  3 19:55 pop -&gt; pullit
Thanks,
BB</description> <content:encoded><![CDATA[<p>I would like to find a &#8220;file&#8221; or &#8220;link&#8221; by a certain name. Is that possible with find ?</p><p>For example,  if I have the following file in the current directory, can &#8220;find&#8221; locate<br
/> the file by either &#8220;pop&#8221; or &#8220;pullit&#8221; ?</p><p>lrwxrwxrwx   1 bb       other          6 Oct  3 19:55 pop -&gt; pullit</p><p>Thanks,<br
/> BB</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-59782</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Sat, 04 Jun 2011 01:11:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-59782</guid> <description>&lt;pre&gt;
find /path/to/dir -type f -name &quot;*&quot; -type f -exec cat -n {} \;
&lt;/pre&gt;</description> <content:encoded><![CDATA[<pre>
find /path/to/dir -type f -name "*" -type f -exec cat -n {} \;
</pre>]]></content:encoded> </item> <item><title>By: Howard</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-59779</link> <dc:creator>Howard</dc:creator> <pubDate>Fri, 03 Jun 2011 22:05:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-59779</guid> <description>Regarding executing commands on files found by the find command, is it possible to  execute the cat command on files found by the find command?  If so, it would be great if you could provide some examples of how this could be done.
I want to use the find command to find all regular files in a directory used to store scripts and then execute either a &quot;cat -n&quot; or plain &quot;cat&quot; command to print the contents of each of the files (i.e., scripts) which were found in the directory.
Thanks.  Howard</description> <content:encoded><![CDATA[<p>Regarding executing commands on files found by the find command, is it possible to  execute the cat command on files found by the find command?  If so, it would be great if you could provide some examples of how this could be done.</p><p>I want to use the find command to find all regular files in a directory used to store scripts and then execute either a &#8220;cat -n&#8221; or plain &#8220;cat&#8221; command to print the contents of each of the files (i.e., scripts) which were found in the directory.</p><p>Thanks.  Howard</p> ]]></content:encoded> </item> <item><title>By: Ahmad Aadil</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-57077</link> <dc:creator>Ahmad Aadil</dc:creator> <pubDate>Tue, 05 Apr 2011 09:11:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-57077</guid> <description>Press tab two times.</description> <content:encoded><![CDATA[<p>Press tab two times.</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-48267</link> <dc:creator>Anonymous</dc:creator> <pubDate>Wed, 07 Jul 2010 11:45:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-48267</guid> <description>how to see  all commands in unix ?</description> <content:encoded><![CDATA[<p>how to see  all commands in unix ?</p> ]]></content:encoded> </item> <item><title>By: neha</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-40315</link> <dc:creator>neha</dc:creator> <pubDate>Mon, 16 Feb 2009 05:40:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-40315</guid> <description>nice aricle  with good examples</description> <content:encoded><![CDATA[<p>nice aricle  with good examples</p> ]]></content:encoded> </item> <item><title>By: sophia</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-39144</link> <dc:creator>sophia</dc:creator> <pubDate>Fri, 07 Nov 2008 03:55:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-39144</guid> <description>i would like to ask how to use the find command to locate all the hidden files in a folder. the hidden files are error files.</description> <content:encoded><![CDATA[<p>i would like to ask how to use the find command to locate all the hidden files in a folder. the hidden files are error files.</p> ]]></content:encoded> </item> <item><title>By: bhanu</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-38154</link> <dc:creator>bhanu</dc:creator> <pubDate>Tue, 24 Jun 2008 11:49:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-38154</guid> <description>find . -name &quot;chapter*&quot; -print &#124; xargs grep &quot;Bhanu&quot;
It will search for the files starting with chapter,
and with  in these files it will search for Bhanu string.</description> <content:encoded><![CDATA[<p>find . -name &#8220;chapter*&#8221; -print | xargs grep &#8220;Bhanu&#8221;<br
/> It will search for the files starting with chapter,<br
/> and with  in these files it will search for Bhanu string.</p> ]]></content:encoded> </item> <item><title>By: nephish</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-37935</link> <dc:creator>nephish</dc:creator> <pubDate>Fri, 16 May 2008 13:09:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-37935</guid> <description>great article, thanks for putting this out there, all these find tips are in my notes now.</description> <content:encoded><![CDATA[<p>great article, thanks for putting this out there, all these find tips are in my notes now.</p> ]]></content:encoded> </item> <item><title>By: yoander</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-37926</link> <dc:creator>yoander</dc:creator> <pubDate>Thu, 15 May 2008 13:36:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-37926</guid> <description>Also you can combine find with xargs in a powerful ways for example:
&lt;code&gt;
find ~/code -print0 &#124; xargs -0 chmod -v 0700
&lt;/code&gt;
the previous commands change mode of every file under
~/code including code directory.</description> <content:encoded><![CDATA[<p>Also you can combine find with xargs in a powerful ways for example:</p><p><code><br
/> find ~/code -print0 | xargs -0 chmod -v 0700<br
/> </code></p><p>the previous commands change mode of every file under<br
/> ~/code including code directory.</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-37925</link> <dc:creator>vivek</dc:creator> <pubDate>Thu, 15 May 2008 08:25:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-37925</guid> <description>Mich,
&lt;code&gt;grep &#039;main()&#039; *.c
grep -r &quot;string&quot; /home/you
find . -exec grep -H &quot;string&quot; &#039;{}&#039; \; -print&lt;/code&gt;
HTH</description> <content:encoded><![CDATA[<p>Mich,</p><p><code>grep 'main()' *.c<br
/> grep -r "string" /home/you<br
/> find . -exec grep -H "string" '{}' \; -print</code></p><p>HTH</p> ]]></content:encoded> </item> <item><title>By: Mich</title><link>http://www.cyberciti.biz/faq/howto-find-a-file-under-unix/#comment-37920</link> <dc:creator>Mich</dc:creator> <pubDate>Wed, 14 May 2008 22:46:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1070#comment-37920</guid> <description>It would be interesting to know how to find files that contains certain words in the text (inside the file)
:)</description> <content:encoded><![CDATA[<p>It would be interesting to know how to find files that contains certain words in the text (inside the file)</p><p>:)</p> ]]></content:encoded> </item> </channel> </rss>
