<?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: Find and Replace in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532131#M678541</link>
    <description>&amp;gt;&amp;gt;Lastly, too, you do not need to escape the '+' character &lt;BR /&gt;&lt;BR /&gt;True.  Old habits die hard though.</description>
    <pubDate>Wed, 11 Nov 2009 22:29:22 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2009-11-11T22:29:22Z</dc:date>
    <item>
      <title>Find and Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532127#M678537</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have hundreds of files that I need to change the ownerships for. The files are under directory&lt;BR /&gt; -rw-rw----    1 4707  arbor           570 Oct 29 20:03 /opt/hyperion/parmfiles/arbor/ECSDM_INCFC_CCHD_CRNCY_CONV_RATE&lt;BR /&gt;&lt;BR /&gt;I need to change the files owned by UID 4707 to arbor. I was thinking of using for loop. &lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 11 Nov 2009 21:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532127#M678537</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-11-11T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532128#M678538</link>
      <description>Let find do the work:&lt;BR /&gt;&lt;BR /&gt;cd /dir/files/are/in&lt;BR /&gt;find . -type f -user 4707 -exec chown arbor {} \+</description>
      <pubDate>Wed, 11 Nov 2009 21:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532128#M678538</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-11-11T21:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532129#M678539</link>
      <description>Hi,&lt;BR /&gt;2 steps required &lt;BR /&gt;1st &lt;BR /&gt;#cd /opt/hyperion/parmfiles/arbor/ECSDM_INCFC_CCHD_CRNCY_CONV_RATE &lt;BR /&gt;&lt;BR /&gt;2nd&lt;BR /&gt;#find . -type f -user 4707 -exec chown arbor {} \;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 11 Nov 2009 21:50:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532129#M678539</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-11-11T21:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532130#M678540</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Patrick's use of the "+" terminator with the '-exec' command makes things much more efficient than if the '\;' terminator is used.&lt;BR /&gt;&lt;BR /&gt;That is:&lt;BR /&gt;&lt;BR /&gt;# find . -type f -user 4707 -exec chown arbor {} \+&lt;BR /&gt;&lt;BR /&gt;...runs much faster than:&lt;BR /&gt;&lt;BR /&gt;# find . -type f -user 4707 -exec chown arbor {} \;&lt;BR /&gt;&lt;BR /&gt;The '+' syntax causes multiple arguments to be assembled and passed to one instantiation of the 'exec'ed command eliminating the overhead of spawning one process per file.&lt;BR /&gt;&lt;BR /&gt;Lastly, too, you do not need to escape the '+' character and can write:&lt;BR /&gt;&lt;BR /&gt;# find . -type f -user 4707 -exec chown arbor {} +&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 11 Nov 2009 21:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532130#M678540</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-11T21:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find and Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532131#M678541</link>
      <description>&amp;gt;&amp;gt;Lastly, too, you do not need to escape the '+' character &lt;BR /&gt;&lt;BR /&gt;True.  Old habits die hard though.</description>
      <pubDate>Wed, 11 Nov 2009 22:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace/m-p/4532131#M678541</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-11-11T22:29:22Z</dc:date>
    </item>
  </channel>
</rss>

