<?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: Search inside text files.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351396#M870076</link>
    <description>find /example -exec grep -l 'Where are you' {} \;&lt;BR /&gt;&lt;BR /&gt;That output can be redirected to a file.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 06 Aug 2004 09:47:00 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-08-06T09:47:00Z</dc:date>
    <item>
      <title>Search inside text files....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351395#M870075</link>
      <description>I am looking for a text file that contains a particular word in the text of the file itself, not the file name.  I know the file is located in one of four rather large directory structures.&lt;BR /&gt;&lt;BR /&gt;Is there a command or series of commands that will give me a list of all the files that contain this word and the files location?</description>
      <pubDate>Fri, 06 Aug 2004 09:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351395#M870075</guid>
      <dc:creator>Christine S Feeley</dc:creator>
      <dc:date>2004-08-06T09:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search inside text files....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351396#M870076</link>
      <description>find /example -exec grep -l 'Where are you' {} \;&lt;BR /&gt;&lt;BR /&gt;That output can be redirected to a file.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 06 Aug 2004 09:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351396#M870076</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-08-06T09:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search inside text files....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351397#M870077</link>
      <description>find /dir1 /dir2 /dir3 /dir4 -type f -exec grep -l "text_string" {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 06 Aug 2004 09:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351397#M870077</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-08-06T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search inside text files....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351398#M870078</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; find /dir -type f|xargs grep -il word&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Make a subdirectory and use ln -s to make aliases for the 4 directories and you can start in one place with&lt;BR /&gt;&lt;BR /&gt;find . -follow|xargs grep -il word&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Either way you get the file names back&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
      <pubDate>Fri, 06 Aug 2004 09:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351398#M870078</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-08-06T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search inside text files....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351399#M870079</link>
      <description>You can do it by using grep command with find as,&lt;BR /&gt;&lt;BR /&gt; grep -n '/pattern or word/' `find $PWD -name "file-pattern"`&lt;BR /&gt;&lt;BR /&gt; Try to use effective file pattern else fidn will try to check binary executable files too. &lt;BR /&gt;&lt;BR /&gt; or use as like,&lt;BR /&gt;&lt;BR /&gt;find . -type f -print |xargs grep xyz &lt;BR /&gt;&lt;BR /&gt; If you like this, find command output will be used to search patter xyz on that. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Aug 2004 10:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351399#M870079</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-06T10:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search inside text files....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351400#M870080</link>
      <description>Thanks for all the help....the first two returned a lot of errors.  The last two replies worked well, and I found the file I was looking for.</description>
      <pubDate>Fri, 06 Aug 2004 10:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-inside-text-files/m-p/3351400#M870080</guid>
      <dc:creator>Christine S Feeley</dc:creator>
      <dc:date>2004-08-06T10:48:19Z</dc:date>
    </item>
  </channel>
</rss>

