<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with doing a find in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952806#M98853</link>
    <description>What exactly are you trying to accomplish?&lt;BR /&gt;&lt;BR /&gt;You have a list of filenames and you want to run the find command against it?  Are you wanting to locate a specific filename in the file?  Are you wanting to see if the files are on the system?&lt;BR /&gt;&lt;BR /&gt;I don't understand your question.  A little more explanation please.</description>
    <pubDate>Mon, 16 Jan 2006 22:10:55 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2006-01-16T22:10:55Z</dc:date>
    <item>
      <title>Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952805#M98852</link>
      <description>Hey gang,&lt;BR /&gt;&lt;BR /&gt;Here is what I'm wanting to do...I'm wanting to run a find command on a file containing a list of filenames.  How would be the best approach to do this?  Thanks!!!</description>
      <pubDate>Mon, 16 Jan 2006 21:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952805#M98852</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-01-16T21:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952806#M98853</link>
      <description>What exactly are you trying to accomplish?&lt;BR /&gt;&lt;BR /&gt;You have a list of filenames and you want to run the find command against it?  Are you wanting to locate a specific filename in the file?  Are you wanting to see if the files are on the system?&lt;BR /&gt;&lt;BR /&gt;I don't understand your question.  A little more explanation please.</description>
      <pubDate>Mon, 16 Jan 2006 22:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952806#M98853</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-01-16T22:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952807#M98854</link>
      <description>Hey Patrick,&lt;BR /&gt;&lt;BR /&gt;I hope this helps....&lt;BR /&gt;&lt;BR /&gt;I have a file (we'll call it FileA) that has the following entries...&lt;BR /&gt;&lt;BR /&gt;file1&lt;BR /&gt;file2&lt;BR /&gt;file3&lt;BR /&gt;&lt;BR /&gt;I want to write a script that will do a find on these entries in FileA.  The entries in FileA will change periodically.  What would be the best approach?  Thanks!!!</description>
      <pubDate>Mon, 16 Jan 2006 22:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952807#M98854</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-01-16T22:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952808#M98855</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;u may use grep command alone:&lt;BR /&gt;&lt;BR /&gt;# grep "file" &lt;NAME of="" file=""&gt;&lt;BR /&gt;&lt;BR /&gt;regards.&lt;/NAME&gt;</description>
      <pubDate>Mon, 16 Jan 2006 22:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952808#M98855</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2006-01-16T22:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952809#M98856</link>
      <description>Hopefully this will better explain....&lt;BR /&gt;&lt;BR /&gt;I have a file with a list of entries in it (FileA).  Looks like...&lt;BR /&gt;&lt;BR /&gt;entry1&lt;BR /&gt;entry2&lt;BR /&gt;entry3&lt;BR /&gt;&lt;BR /&gt;I want to run a find commands like these:&lt;BR /&gt;&lt;BR /&gt;find / -name entry1&lt;BR /&gt;find / -name entry2&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;The thing is that the entries in FileA change.  I need to be able to do a find on / looking for these entries.  Any thoughts?  Thanks again.&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2006 22:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952809#M98856</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-01-16T22:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952810#M98857</link>
      <description>I am also confused about the purpose. If FileA has a list of simple filenames, are you going to search the entire computer for their location? If so, this can have a huge impact on system performance. Here is a simple procedure to locate a specific filename:&lt;BR /&gt; &lt;BR /&gt;STARTDIR=/&lt;BR /&gt;cat FileA | while read MYFILE&lt;BR /&gt;do&lt;BR /&gt;find $STARTDIR -type f -name $MYFILE -exec ll {} \;&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;Ideally, you have an idea where the file is located so you don't have to search the entire filesystem. Just set STARTDIR to that directory to speed things up.</description>
      <pubDate>Mon, 16 Jan 2006 22:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952810#M98857</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-01-16T22:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952811#M98858</link>
      <description>That got it!!!  Thanks!!!</description>
      <pubDate>Mon, 16 Jan 2006 23:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952811#M98858</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-01-16T23:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952812#M98859</link>
      <description>The issue with find is that it is resouce intensive particularly with threads.&lt;BR /&gt;&lt;BR /&gt;A good way to bring a machine to its knees is to kick of a number of simultaneous find commands that search most of the file systems.&lt;BR /&gt;&lt;BR /&gt;If this could be an issue for you perhaps have a look at the man page for the nice command.</description>
      <pubDate>Tue, 17 Jan 2006 22:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952812#M98859</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2006-01-17T22:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952813#M98860</link>
      <description>I can not give you better solution than  Bill Hassell's. His solution is the best way&lt;BR /&gt;Enjoy&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2006 22:52:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952813#M98860</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2006-01-17T22:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952814#M98861</link>
      <description>Hi,&lt;BR /&gt;%cat tt&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;&lt;BR /&gt;%cat tt|xargs -i find . -name {} -exec ll {} \;&lt;BR /&gt;-rw-r--r--   1 pe_EU      gpsy             0 Jan 18 02:44 a&lt;BR /&gt;-rw-r--r--   1 pe_EU      gpsy             0 Jan 18 02:44 b&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 18 Jan 2006 04:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952814#M98861</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-01-18T04:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952815#M98862</link>
      <description>Not knowing why you want to do a find I may be missing the point, but the following would work :-&lt;BR /&gt;&lt;BR /&gt;find &lt;STARTDIR&gt; -name '*' | grep -F -f &lt;FILELIST&gt;&lt;BR /&gt;&lt;BR /&gt;Where &lt;STARTDIR&gt; would be your base directory assuming you have an idea of where they would be, and &lt;FILELIST&gt; is your list of files that you already have. Note the single quotes around *.&lt;BR /&gt;&lt;BR /&gt;This would give you a fuller filename (or full if starting from root).&lt;BR /&gt;&lt;BR /&gt;Note that this should be less cpu and IO intensive as it is only doing 1 find, but it really does depend on what you are doing.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Brian&lt;/FILELIST&gt;&lt;/STARTDIR&gt;&lt;/FILELIST&gt;&lt;/STARTDIR&gt;</description>
      <pubDate>Sat, 28 Jan 2006 09:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952815#M98862</guid>
      <dc:creator>Brian Sealey</dc:creator>
      <dc:date>2006-01-28T09:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a find</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952816#M98863</link>
      <description>Great ideas.  Thanks everyone</description>
      <pubDate>Thu, 05 Oct 2006 21:52:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-with-doing-a-find/m-p/4952816#M98863</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-10-05T21:52:28Z</dc:date>
    </item>
  </channel>
</rss>

