<?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 script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580949#M924397</link>
    <description>&lt;BR /&gt;I`ve modified your file.&lt;BR /&gt;&lt;BR /&gt;Unchecked. Could contain syntax errors.</description>
    <pubDate>Thu, 20 Sep 2001 08:54:49 GMT</pubDate>
    <dc:creator>Carlos Fernandez Riera</dc:creator>
    <dc:date>2001-09-20T08:54:49Z</dc:date>
    <item>
      <title>find and replace script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580945#M924393</link>
      <description>attached is a script that'll find and replace text in files recursively from the directory it's run from.&lt;BR /&gt;&lt;BR /&gt;In my case, it's mainly written to replace hardcoded hostnames in config files but might be useful to others. Of course it's not too sensitive on files it's looking in, but is a better alternative to vi'ing lots of files individually.&lt;BR /&gt;&lt;BR /&gt;Comments and/or corrections/improvements always welcome.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 18 Sep 2001 12:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580945#M924393</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-09-18T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: find and replace script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580946#M924394</link>
      <description>THANKS BILL!&lt;BR /&gt;&lt;BR /&gt;I was manually changing some webpages using vi just last night.  What a tedious process.  I only had a console and couldn't use a windows machine.&lt;BR /&gt;&lt;BR /&gt;This will definitely come in handy...&lt;BR /&gt;&lt;BR /&gt;thanks again for sharing.</description>
      <pubDate>Tue, 18 Sep 2001 12:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580946#M924394</guid>
      <dc:creator>Edward Alfert_2</dc:creator>
      <dc:date>2001-09-18T12:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: find and replace script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580947#M924395</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;nit-picking really, but here's a few comments:&lt;BR /&gt;&lt;BR /&gt;i) the awk's not really needed because you're executing the cut&lt;BR /&gt;ii) the second if block contains a "mv", I reckon this should be a "cp", but...&lt;BR /&gt;iii) ...you could combine the 2 if statements into one to cut down on duplicate code (it's running both anyway for "ascii text" files).&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 19 Sep 2001 13:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580947#M924395</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-09-19T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: find and replace script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580948#M924396</link>
      <description>Yea Robin, you're right,&lt;BR /&gt;&lt;BR /&gt;First point, yep, that's what I get for adding to it bit by bit..&lt;BR /&gt;&lt;BR /&gt;the text is there for command text, ascii doesn't show up on my script files...&lt;BR /&gt;Although for duplication I couldn't get the || (or) in my if statement, i didn't want to spend too long looking to clean it up, but should really..&lt;BR /&gt;&lt;BR /&gt;Probably should change to cp, but, I don't want to delete files seperately..&lt;BR /&gt;&lt;BR /&gt;Bill&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Sep 2001 06:33:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580948#M924396</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-09-20T06:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: find and replace script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580949#M924397</link>
      <description>&lt;BR /&gt;I`ve modified your file.&lt;BR /&gt;&lt;BR /&gt;Unchecked. Could contain syntax errors.</description>
      <pubDate>Thu, 20 Sep 2001 08:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580949#M924397</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-09-20T08:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: find and replace script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580950#M924398</link>
      <description>Try this version better..</description>
      <pubDate>Thu, 20 Sep 2001 09:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-and-replace-script/m-p/2580950#M924398</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-09-20T09:29:53Z</dc:date>
    </item>
  </channel>
</rss>

