<?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: Need command or script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551483#M678809</link>
    <description>Can you show the actual command you used, with the real paths?  I tested the command I gave, and it works for the sample path:&lt;BR /&gt;&lt;BR /&gt;% find logs&lt;BR /&gt;logs&lt;BR /&gt;logs/a&lt;BR /&gt;logs/a/b&lt;BR /&gt;logs/a/b/c&lt;BR /&gt;logs/a/b/c/d&lt;BR /&gt;logs/a/b/c/d/instance-1&lt;BR /&gt;logs/a/b/c/d/instance-1/some.log&lt;BR /&gt;logs/a/b/c/d/instance-2&lt;BR /&gt;logs/a/b/c/d/instance-2/some.log&lt;BR /&gt;logs/a/b/c/d/instance-3&lt;BR /&gt;logs/a/b/c/d/instance-3/some.log&lt;BR /&gt;logs/a/b/c/d/instance-4&lt;BR /&gt;logs/a/b/c/d/instance-4/some.log&lt;BR /&gt;% ls tmp&lt;BR /&gt;% for file in logs/a/b/c/d/*/some.log; do&lt;BR /&gt;cp "$file" \&lt;BR /&gt;    "`echo "$file" | sed 's,logs/a/b/c/d/\(.*\)/some.log,tmp/some.log-\1,'`"&lt;BR /&gt;done&lt;BR /&gt;% find tmp&lt;BR /&gt;tmp&lt;BR /&gt;tmp/some.log-instance-1&lt;BR /&gt;tmp/some.log-instance-2&lt;BR /&gt;tmp/some.log-instance-3&lt;BR /&gt;tmp/some.log-instance-4&lt;BR /&gt;%</description>
    <pubDate>Thu, 17 Dec 2009 04:45:37 GMT</pubDate>
    <dc:creator>River Tarnell</dc:creator>
    <dc:date>2009-12-17T04:45:37Z</dc:date>
    <item>
      <title>Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551480#M678806</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am looking out for script or commands for below.&lt;BR /&gt;&lt;BR /&gt;I have some instances in a logs directory as follows:&lt;BR /&gt;/logs/a/b/c/d/xyz-instance-1/some.log&lt;BR /&gt;/logs/a/b/c/d/xyz-instance-2/some.log&lt;BR /&gt;/logs/a/b/c/d/xyz-instance-3/some.log&lt;BR /&gt;/logs/a/b/c/d/xyz-instance-4/some.log&lt;BR /&gt;/logs/a/b/c/d/xyz-instance-5/some.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I want to copy above in /tmp/ direcotry having below path and names.&lt;BR /&gt;&lt;BR /&gt;/tmp/some.log-xyz-instance-1&lt;BR /&gt;/tmp/some.log-xyz-instance-2&lt;BR /&gt;/tmp/some.log-xyz-instance-3&lt;BR /&gt;/tmp/some.log-xyz-instance-4&lt;BR /&gt;/tmp/some.log-xyz-instance-5&lt;BR /&gt;&lt;BR /&gt;Can someone please suggest commands or script ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2009 03:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551480#M678806</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-12-17T03:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551481#M678807</link>
      <description>&lt;!--!*#--&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;for file in /logs/a/b/c/d/*/some.log; do&lt;BR /&gt;  cp "$file" \&lt;BR /&gt;    "`echo "$file" | sed 's,/logs/a/b/c/d/\(.*\)/some.log,/tmp/some.log-\1,'`"&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2009 04:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551481#M678807</guid>
      <dc:creator>River Tarnell</dc:creator>
      <dc:date>2009-12-17T04:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551482#M678808</link>
      <description>When i executed after convering to my actual paths it says that some.log are identical.</description>
      <pubDate>Thu, 17 Dec 2009 04:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551482#M678808</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-12-17T04:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551483#M678809</link>
      <description>Can you show the actual command you used, with the real paths?  I tested the command I gave, and it works for the sample path:&lt;BR /&gt;&lt;BR /&gt;% find logs&lt;BR /&gt;logs&lt;BR /&gt;logs/a&lt;BR /&gt;logs/a/b&lt;BR /&gt;logs/a/b/c&lt;BR /&gt;logs/a/b/c/d&lt;BR /&gt;logs/a/b/c/d/instance-1&lt;BR /&gt;logs/a/b/c/d/instance-1/some.log&lt;BR /&gt;logs/a/b/c/d/instance-2&lt;BR /&gt;logs/a/b/c/d/instance-2/some.log&lt;BR /&gt;logs/a/b/c/d/instance-3&lt;BR /&gt;logs/a/b/c/d/instance-3/some.log&lt;BR /&gt;logs/a/b/c/d/instance-4&lt;BR /&gt;logs/a/b/c/d/instance-4/some.log&lt;BR /&gt;% ls tmp&lt;BR /&gt;% for file in logs/a/b/c/d/*/some.log; do&lt;BR /&gt;cp "$file" \&lt;BR /&gt;    "`echo "$file" | sed 's,logs/a/b/c/d/\(.*\)/some.log,tmp/some.log-\1,'`"&lt;BR /&gt;done&lt;BR /&gt;% find tmp&lt;BR /&gt;tmp&lt;BR /&gt;tmp/some.log-instance-1&lt;BR /&gt;tmp/some.log-instance-2&lt;BR /&gt;tmp/some.log-instance-3&lt;BR /&gt;tmp/some.log-instance-4&lt;BR /&gt;%</description>
      <pubDate>Thu, 17 Dec 2009 04:45:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551483#M678809</guid>
      <dc:creator>River Tarnell</dc:creator>
      <dc:date>2009-12-17T04:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551484#M678810</link>
      <description>&lt;!--!*#--&gt;&amp;gt; When i executed after convering to my&lt;BR /&gt;&amp;gt; actual paths [...]&lt;BR /&gt;&lt;BR /&gt;If you can't figure out how to adapt a&lt;BR /&gt;suggestion to your actual data, and you&lt;BR /&gt;expect someone else to do your _whole_ job&lt;BR /&gt;for you, then it might make some sense to&lt;BR /&gt;provide the actual data.  Or was your goal to&lt;BR /&gt;waste everyone's time?</description>
      <pubDate>Thu, 17 Dec 2009 05:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551484#M678810</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-17T05:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551485#M678811</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;You have not provided any input then how you have wasted your time ?&lt;BR /&gt;&lt;BR /&gt;I have been posting my questions on this forum for almost 5 years and no one raised concern so far.&lt;BR /&gt;&lt;BR /&gt;If anyone do not have time to answer then it is fine. &lt;BR /&gt;&lt;BR /&gt;If i have been very good in sed and awk then i would have never posted my question here.&lt;BR /&gt;&lt;BR /&gt;Please do not post your answer for my question if you feel i am wasting your time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 17 Dec 2009 05:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551485#M678811</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-12-17T05:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551486#M678812</link>
      <description>Thanks River!! It worked. There was a typo as i had put extra "/" before /logs.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2009 05:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551486#M678812</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-12-17T05:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551487#M678813</link>
      <description>&lt;!--!*#--&gt;&amp;gt; You have not provided any input [...]&lt;BR /&gt;&lt;BR /&gt;Your (second) problem description did not&lt;BR /&gt;show what you did, nor the data you fed into&lt;BR /&gt;it.  This makes it hard for someone with my&lt;BR /&gt;weak psychic powers to contribute much.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] how you have wasted your time ?&lt;BR /&gt;&lt;BR /&gt;Did I say that only _my_ time was wasted?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can you show the actual command you used,&lt;BR /&gt;&amp;gt; with the real paths? [...]&lt;BR /&gt;&lt;BR /&gt;That looks to me like some wasted time.&lt;BR /&gt;&lt;BR /&gt;As I said, "it might make some sense to&lt;BR /&gt;provide the actual data."  Do you think that&lt;BR /&gt;not showing your actual commands and not&lt;BR /&gt;showing your actual data were helpful?</description>
      <pubDate>Thu, 17 Dec 2009 06:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551487#M678813</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-17T06:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551488#M678814</link>
      <description>These are production servers and i can't disclose any actual paths. That was the reason i had to convert the paths. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2009 06:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551488#M678814</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-12-17T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551489#M678815</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; These are production servers and i can't disclose any actual paths&lt;BR /&gt;&lt;BR /&gt;I seriously doubt that this will compromise anything.  What does it matter if I know the name of a path on a server if I can't get to the server in the first place?&lt;BR /&gt;&lt;BR /&gt;Providing actual commands and actual filenames together with the actual error or warning message you received would help you solve your objective much faster.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 17 Dec 2009 13:04:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551489#M678815</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-12-17T13:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551490#M678816</link>
      <description>Shalom Shiv,&lt;BR /&gt;&lt;BR /&gt;For nearly 4 years I worked for a security company (Cable TV) and there is always a balance seeking help on ITRC with actual problem data.&lt;BR /&gt;&lt;BR /&gt;I've found that altering ip addresses, and not bringing problems with proprietary products to the forums was sufficient to avoid security conflict.&lt;BR /&gt;&lt;BR /&gt;An actual error message in this case would not have compromised security. I had to pass a lie dectetor test to get my last job, and they were SERIOUS about security.&lt;BR /&gt;&lt;BR /&gt;Interesting little question actually.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 17 Dec 2009 13:25:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551490#M678816</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-12-17T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need command or script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551491#M678817</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I've found that altering ip addresses [...]&lt;BR /&gt;&amp;gt; was sufficient to avoid security conflict.&lt;BR /&gt;&lt;BR /&gt;And, if the problem involves network&lt;BR /&gt;configuration, then altering IP addresses&lt;BR /&gt;can be sufficient to obscure the actual&lt;BR /&gt;problem, too.  Everything's complicated.&lt;BR /&gt;Irregardful, hiding all the _useful_ info&lt;BR /&gt;remains sub-helpful.</description>
      <pubDate>Thu, 17 Dec 2009 21:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-command-or-script/m-p/4551491#M678817</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-17T21:51:10Z</dc:date>
    </item>
  </channel>
</rss>

