<?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: Replace in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145080#M717876</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I dont have a server to check it on but this should create a backup of your file first and then do the replace.&lt;BR /&gt;&lt;BR /&gt;Test it on a few files in a test environment first.&lt;BR /&gt;&lt;BR /&gt;find . -type f -print | xargs perl -i.bak -p -e 's#/PROCESS_DT/#PROCESS_DATE#g'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
    <pubDate>Mon, 15 Dec 2003 13:46:45 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2003-12-15T13:46:45Z</dc:date>
    <item>
      <title>Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145079#M717875</link>
      <description>I have more than 150 shell scripts.&lt;BR /&gt;I use a common environmental variable (PROCESS_DT) in all of them. Now i need to change it as PROCESS_DATE. Is there any way i can change in all scripts all at once ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Raj</description>
      <pubDate>Mon, 15 Dec 2003 13:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145079#M717875</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2003-12-15T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145080#M717876</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I dont have a server to check it on but this should create a backup of your file first and then do the replace.&lt;BR /&gt;&lt;BR /&gt;Test it on a few files in a test environment first.&lt;BR /&gt;&lt;BR /&gt;find . -type f -print | xargs perl -i.bak -p -e 's#/PROCESS_DT/#PROCESS_DATE#g'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 15 Dec 2003 13:46:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145080#M717876</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-12-15T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145081#M717877</link>
      <description>Try this script:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;find . -type f -depth | while read FILE&lt;BR /&gt;do&lt;BR /&gt;sed "s/PROCESS_DT/PROCESS_DATE/g" &amp;lt; ${FILE} &amp;gt; ${FILE}.shiju&lt;BR /&gt;mv ${FILE}.shiju $FILE&lt;BR /&gt;done</description>
      <pubDate>Mon, 15 Dec 2003 13:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145081#M717877</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-12-15T13:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145082#M717878</link>
      <description>Backup all you files.&lt;BR /&gt;&lt;BR /&gt;for in in `ls -l|awk '{print $9}'`&lt;BR /&gt;do&lt;BR /&gt;sed "s/PROCESS_DT/PROCESS_DATE/g" $i &amp;gt; $.bak&lt;BR /&gt;mv $i.bak $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2003 13:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145082#M717878</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-15T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145083#M717879</link>
      <description>I get the following error.&lt;BR /&gt;&lt;BR /&gt;Usage: &lt;BR /&gt;mv [-f] [-i] [-e warn|force|ignore] f1 f2&lt;BR /&gt;mv [-f] [-i] [-e warn|force|ignore] f1 ... fn d1&lt;BR /&gt;mv [-f] [-i] [-e warn|force|ignore] d1 d2</description>
      <pubDate>Mon, 15 Dec 2003 13:55:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145083#M717879</guid>
      <dc:creator>Prabhu_7</dc:creator>
      <dc:date>2003-12-15T13:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145084#M717880</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;use mv -f&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 15 Dec 2003 14:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace/m-p/3145084#M717880</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-12-15T14:11:14Z</dc:date>
    </item>
  </channel>
</rss>

