<?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: &amp;quot;scripting and find command&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547752#M875475</link>
    <description>Clay, thanks for the quick response, but something is wrong here, I have tried it on my HP systems (10.20) and Suns and I get the same results.  I created files named core in /tmp and /tmp/restore.  &lt;BR /&gt;I run your command find /tmp -name core -exec mv {} {}.sav \;   -- What happens is the core files go into the bit bucket in the sky.  They are no longer there or core.sav.  Any additional assistance would be appreciated, as in the past I will assign points.</description>
    <pubDate>Mon, 02 Jul 2001 17:30:39 GMT</pubDate>
    <dc:creator>Belinda Dermody</dc:creator>
    <dc:date>2001-07-02T17:30:39Z</dc:date>
    <item>
      <title>"scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547750#M875473</link>
      <description>I am stumped on this one.  We have an application that is bombing quite often and one thing that I need to supply to the thech's   is a core file.  Lately, by the time I transverse through all the subdirectores with my script to report files and file sizes and locate core files, the application will crash again and overwrite the existing core file(If it is the same crash).  I have written a script that gives me all the general information while I am on the phone.  What I would like is there a way with the find command to rename core file to either core.&lt;PID&gt; or core.sav and keep it in the same sub dir as it traverse all the directories.&lt;/PID&gt;</description>
      <pubDate>Mon, 02 Jul 2001 17:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547750#M875473</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-07-02T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547751#M875474</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This one is pretty easy:&lt;BR /&gt;&lt;BR /&gt;find . (or /) -name 'core' -exec mv {} {}.sav \;&lt;BR /&gt;&lt;BR /&gt;If you know the starting directory specify in or use /.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Mon, 02 Jul 2001 17:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547751#M875474</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-02T17:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547752#M875475</link>
      <description>Clay, thanks for the quick response, but something is wrong here, I have tried it on my HP systems (10.20) and Suns and I get the same results.  I created files named core in /tmp and /tmp/restore.  &lt;BR /&gt;I run your command find /tmp -name core -exec mv {} {}.sav \;   -- What happens is the core files go into the bit bucket in the sky.  They are no longer there or core.sav.  Any additional assistance would be appreciated, as in the past I will assign points.</description>
      <pubDate>Mon, 02 Jul 2001 17:30:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547752#M875475</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-07-02T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547753#M875476</link>
      <description>Hi James:&lt;BR /&gt;&lt;BR /&gt;You can do this:&lt;BR /&gt;&lt;BR /&gt;# find /tmp -type f -name core|xargs -i mv {} {}.old&lt;BR /&gt;&lt;BR /&gt;If you prefer, you can 'cd' into the directory of your choice and do:&lt;BR /&gt;&lt;BR /&gt;# find . -type f -name core|xargs -i mv {} {}.old&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 02 Jul 2001 17:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547753#M875476</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-02T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547754#M875477</link>
      <description>Thanks Jim, it works like a charm</description>
      <pubDate>Mon, 02 Jul 2001 17:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547754#M875477</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-07-02T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547755#M875478</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Sorry about that, James' response is the correct one or you can create a small shell script (/tmp/my.sh) to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mv ${1} ${1}.sav&lt;BR /&gt;&lt;BR /&gt;and then rather&lt;BR /&gt;find . -name 'core' -exec /tmp/my.sh {} \;&lt;BR /&gt;&lt;BR /&gt;If you like you could also pass another arg to the script so that you could have .sav1 .sav2 ...&lt;BR /&gt;&lt;BR /&gt;Sorry about that, Clay</description>
      <pubDate>Mon, 02 Jul 2001 17:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547755#M875478</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-02T17:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547756#M875479</link>
      <description>&lt;BR /&gt;The core has been renamed to {}.old !!!</description>
      <pubDate>Tue, 03 Jul 2001 08:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547756#M875479</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2001-07-03T08:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: "scripting and find command"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547757#M875480</link>
      <description>I will give Clay 7 more points as his correction also works, but Jim came up with the first correct procedure.  I have tried both ways and they both do the mv to a new name and thanks guys.</description>
      <pubDate>Tue, 03 Jul 2001 10:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-scripting-and-find-command-quot/m-p/2547757#M875480</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2001-07-03T10:29:11Z</dc:date>
    </item>
  </channel>
</rss>

