<?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: Linux: Finding and Locating files with find command part # 1</title> <atom:link href="http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: princeda</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-172939</link> <dc:creator>princeda</dc:creator> <pubDate>Mon, 01 Aug 2011 10:42:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-172939</guid> <description>Hi vivek,
How to delete the 3 days old backup files which is in /backup file, using find command?</description> <content:encoded><![CDATA[<p>Hi vivek,</p><p>How to delete the 3 days old backup files which is in /backup file, using find command?</p> ]]></content:encoded> </item> <item><title>By: chandan</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-154665</link> <dc:creator>chandan</dc:creator> <pubDate>Thu, 01 Apr 2010 05:37:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-154665</guid> <description>Hi,
I am unable to find out the boot error which had occured some where in last week while rebooting the server.
Can someone help me which command to use to find that error.
Thanks</description> <content:encoded><![CDATA[<p>Hi,</p><p>I am unable to find out the boot error which had occured some where in last week while rebooting the server.</p><p>Can someone help me which command to use to find that error.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: manpreet</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-148152</link> <dc:creator>manpreet</dc:creator> <pubDate>Fri, 17 Apr 2009 05:11:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-148152</guid> <description>hiii
i want to find all files with inode number 20 and less than 20 with find command.
if someone can help me i ll be grateful to the person
thanks</description> <content:encoded><![CDATA[<p>hiii<br
/> i want to find all files with inode number 20 and less than 20 with find command.<br
/> if someone can help me i ll be grateful to the person<br
/> thanks</p> ]]></content:encoded> </item> <item><title>By: V</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147415</link> <dc:creator>V</dc:creator> <pubDate>Tue, 24 Feb 2009 16:18:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147415</guid> <description>Open all .cpp files that contain the string foo (case insensitive in them):
vi `find ./ -name &#039;*.cpp&#039; -exec grep -qi &#039;foo&#039; {} \; -print0 -exec echo -n &#039; &#039; \;`
Alternatively,
find ./ -name &#039;*.cpp&#039; -exec grep -qi &#039;foo&#039; {} \; -exec vim {} \;
The second version opens one file at a time, as it finds it. The first version takes some time to find all files first, and then opens them all :D
And, of course, in general stuff between -exec and \; can be any command you want with {} being replaced by the matched file name.</description> <content:encoded><![CDATA[<p>Open all .cpp files that contain the string foo (case insensitive in them):</p><p>vi `find ./ -name &#8216;*.cpp&#8217; -exec grep -qi &#8216;foo&#8217; {} \; -print0 -exec echo -n &#8216; &#8216; \;`</p><p>Alternatively,</p><p>find ./ -name &#8216;*.cpp&#8217; -exec grep -qi &#8216;foo&#8217; {} \; -exec vim {} \;</p><p>The second version opens one file at a time, as it finds it. The first version takes some time to find all files first, and then opens them all :D</p><p>And, of course, in general stuff between -exec and \; can be any command you want with {} being replaced by the matched file name.</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147319</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Thu, 19 Feb 2009 06:49:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147319</guid> <description>Use find command:
&lt;code&gt;find /path/to/dir -iname &quot;*.c&quot; -user vivek -print&lt;/code&gt;
The &lt;strong&gt;-user UID&lt;/strong&gt; : Find  file is owned by user UID (numeric user ID allowed).</description> <content:encoded><![CDATA[<p>Use find command:<br
/> <code>find /path/to/dir -iname "*.c" -user vivek -print</code></p><p>The <strong>-user UID</strong> : Find  file is owned by user UID (numeric user ID allowed).</p> ]]></content:encoded> </item> <item><title>By: Alex</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147318</link> <dc:creator>Alex</dc:creator> <pubDate>Thu, 19 Feb 2009 06:14:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147318</guid> <description>I’m hoping to find a command that will allow me to list all files owned by a specific user on a specific file systems. So, I can create a script and (using this script) be able to search for other owners on other file systems without having to edit this file.
Thanks for any help,
Alex</description> <content:encoded><![CDATA[<p>I’m hoping to find a command that will allow me to list all files owned by a specific user on a specific file systems. So, I can create a script and (using this script) be able to search for other owners on other file systems without having to edit this file.</p><p>Thanks for any help,<br
/> Alex</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147079</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Fri, 06 Feb 2009 22:59:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147079</guid> <description>Option #1: Install gnufind
&lt;pre&gt;find . -iname &quot;*.pds&quot;&lt;/pre&gt;
Option #2: Use Sun find command
&lt;pre&gt;find . -type f  -print &#124; grep -i &quot;*.pds&quot; &lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Option #1: Install gnufind</p><pre>find . -iname "*.pds"</pre><p>Option #2: Use Sun find command</p><pre>find . -type f  -print | grep -i "*.pds" </pre>]]></content:encoded> </item> <item><title>By: Paul Hudgens</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147078</link> <dc:creator>Paul Hudgens</dc:creator> <pubDate>Fri, 06 Feb 2009 22:20:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147078</guid> <description>By the way my previous post re: case insensitivity is for a Sun system.
Thanks</description> <content:encoded><![CDATA[<p>By the way my previous post re: case insensitivity is for a Sun system.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Paul Hudgens</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147077</link> <dc:creator>Paul Hudgens</dc:creator> <pubDate>Fri, 06 Feb 2009 22:20:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-147077</guid> <description>I&#039;m hoping to find a command that will allow me to list all of my PDS files in a given directory but which may have a .pds suffix or a .PDS suffix or a .Pds suffix , ie case insensitive so that with a single command, I see all such files - and then perhaps send that list to a zip command.
Thanks for any help
Paul Hudgens
Denver</description> <content:encoded><![CDATA[<p>I&#8217;m hoping to find a command that will allow me to list all of my PDS files in a given directory but which may have a .pds suffix or a .PDS suffix or a .Pds suffix , ie case insensitive so that with a single command, I see all such files &#8211; and then perhaps send that list to a zip command.</p><p>Thanks for any help<br
/> Paul Hudgens<br
/> Denver</p> ]]></content:encoded> </item> <item><title>By: Dan Coe</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-71129</link> <dc:creator>Dan Coe</dc:creator> <pubDate>Fri, 09 Feb 2007 09:59:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-71129</guid> <description>Thanks for educating me on the basics of using find on Linux.  Most appreciated from a newbie.</description> <content:encoded><![CDATA[<p>Thanks for educating me on the basics of using find on Linux.  Most appreciated from a newbie.</p> ]]></content:encoded> </item> <item><title>By: Amit sharma</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19169</link> <dc:creator>Amit sharma</dc:creator> <pubDate>Fri, 04 Aug 2006 06:50:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19169</guid> <description>Hi nix, appreciate your efforts.
For all those people who are looking for sum more examples.. do check out www.amitsharma.linuxbloggerscom/how_to_find.htm
With best regards..</description> <content:encoded><![CDATA[<p>Hi nix, appreciate your efforts.</p><p>For all those people who are looking for sum more examples.. do check out <a
href="http://www.amitsharma.linuxbloggerscom/how_to_find.htm" rel="nofollow">http://www.amitsharma.linuxbloggerscom/how_to_find.htm</a></p><p>With best regards..</p> ]]></content:encoded> </item> <item><title>By: Sabu</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19168</link> <dc:creator>Sabu</dc:creator> <pubDate>Thu, 18 Aug 2005 12:43:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19168</guid> <description>Good one..2 more from me..
&lt;B&gt;# files modied 3 days ago but less than 5 days.&lt;/B&gt;
&lt;I&gt;find /home -type f -mtime +2 -mtime -5&lt;/I&gt;
&lt;B&gt;# find all files with name &#039;testfile&#039; in /home directory recursively and contains the word hello.&lt;/B&gt;
&lt;I&gt;find /home -type f -name testfile &#124; xargs grep -l -i hello &lt;/I&gt;</description> <content:encoded><![CDATA[<p>Good one..2 more from me..</p><p><b># files modied 3 days ago but less than 5 days.</b></p><p><i>find /home -type f -mtime +2 -mtime -5</i></p><p><b># find all files with name &#8216;testfile&#8217; in /home directory recursively and contains the word hello.</b></p><p><i>find /home -type f -name testfile | xargs grep -l -i hello </i></p> ]]></content:encoded> </item> <item><title>By: Sabu</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19167</link> <dc:creator>Sabu</dc:creator> <pubDate>Thu, 18 Aug 2005 12:41:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19167</guid> <description>This post has been removed by the author.</description> <content:encoded><![CDATA[<p>This post has been removed by the author.</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19166</link> <dc:creator>Anonymous</dc:creator> <pubDate>Sat, 23 Jul 2005 14:22:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-findinglocating-files-with-find-command-part-1.html#comment-19166</guid> <description>Thanks for nice blog!</description> <content:encoded><![CDATA[<p>Thanks for nice blog!</p> ]]></content:encoded> </item> </channel> </rss>
