<?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 Script needed. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002095#M424658</link>
    <description>Hi all..&lt;BR /&gt;&lt;BR /&gt;I would like to write perl/shell script for the below requirement.&lt;BR /&gt;&lt;BR /&gt;1) Read line by line words from a file.&lt;BR /&gt;2) Search that word in multiple directories&lt;BR /&gt;3) If it finds that word in any file, log that filename with the full path into an output file.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;DK</description>
    <pubDate>Fri, 08 Sep 2006 11:40:32 GMT</pubDate>
    <dc:creator>Deepak Kulkarni</dc:creator>
    <dc:date>2006-09-08T11:40:32Z</dc:date>
    <item>
      <title>Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002095#M424658</link>
      <description>Hi all..&lt;BR /&gt;&lt;BR /&gt;I would like to write perl/shell script for the below requirement.&lt;BR /&gt;&lt;BR /&gt;1) Read line by line words from a file.&lt;BR /&gt;2) Search that word in multiple directories&lt;BR /&gt;3) If it finds that word in any file, log that filename with the full path into an output file.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;DK</description>
      <pubDate>Fri, 08 Sep 2006 11:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002095#M424658</guid>
      <dc:creator>Deepak Kulkarni</dc:creator>
      <dc:date>2006-09-08T11:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002096#M424659</link>
      <description>&lt;BR /&gt;for word in `cat file`&lt;BR /&gt;do&lt;BR /&gt;grep $word /list/* /of/dirs/* | awk -F: '{print $1}' &amp;gt; logfile&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2006 12:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002096#M424659</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-09-08T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002097#M424660</link>
      <description>oops need &amp;gt;&amp;gt; or to redirect after the done. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for word in `cat file`&lt;BR /&gt;do&lt;BR /&gt;grep $word /list/* /of/dirs/* | awk -F: '{print $1}' &amp;gt;&amp;gt; logfile&lt;BR /&gt;done</description>
      <pubDate>Fri, 08 Sep 2006 12:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002097#M424660</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-09-08T12:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002098#M424661</link>
      <description>#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;cat file | while read string; do&lt;BR /&gt;for word in $string; do&lt;BR /&gt;find dir1 dir2 dir3 -exec grep -l $word {} \;&lt;BR /&gt;done  #for&lt;BR /&gt;done &amp;gt; logfile</description>
      <pubDate>Fri, 08 Sep 2006 12:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002098#M424661</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2006-09-08T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002099#M424662</link>
      <description>Hi DK,&lt;BR /&gt;&lt;BR /&gt;For a different approach...&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;F_IN=/your/file&lt;BR /&gt;F_OUT=/your/results&lt;BR /&gt;tr -s "[:space:]" "[\n*]" &amp;lt; ${F_IN} &amp;gt; /tmp/wl.${$}&lt;BR /&gt;find / -print | grep -F -f /tmp/wl.${$} &amp;gt; ${F_OUT}&lt;BR /&gt;rm -f /tmp/wl.${$}&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 08 Sep 2006 13:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002099#M424662</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-08T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002100#M424663</link>
      <description>Hi,&lt;BR /&gt;a one-line command:&lt;BR /&gt;&lt;BR /&gt;grep -l -f file /dir1/dir1/* /dir2/dir/*&lt;BR /&gt;&lt;BR /&gt;This command print only the fullpatchname of teh file where the search string conatined into file are found.&lt;BR /&gt;&lt;BR /&gt;this run on my HP-UX11i.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Mon, 11 Sep 2006 03:43:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002100#M424663</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-09-11T03:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002101#M424664</link>
      <description>Hi Everybody...&lt;BR /&gt;&lt;BR /&gt;  Thanks to everyone...&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;DK</description>
      <pubDate>Mon, 11 Sep 2006 08:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5002101#M424664</guid>
      <dc:creator>Deepak Kulkarni</dc:creator>
      <dc:date>2006-09-11T08:56:17Z</dc:date>
    </item>
  </channel>
</rss>

