<?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: global change with script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911621#M832435</link>
    <description>Simply as,&lt;BR /&gt;&lt;BR /&gt;# cd /home/sysscr&lt;BR /&gt;# perl -pi -e 's/uk\\sunset/uk\/sunset/' *ftp*&lt;BR /&gt;&lt;BR /&gt;will do it.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Mon, 11 Jul 2005 06:38:08 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-07-11T06:38:08Z</dc:date>
    <item>
      <title>global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911616#M832430</link>
      <description>there are approximately 50 scripts and are all in /home/sysscr and file names are *ftp*. We need to change uk\sunset to uk/sunset. How can I do this globally?&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 05:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911616#M832430</guid>
      <dc:creator>Ravinder Singh Gill</dc:creator>
      <dc:date>2005-07-11T05:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911617#M832431</link>
      <description>Is this uk\sunset present in name of file or in the contents.&lt;BR /&gt;&lt;BR /&gt;I assume its present in contents.&lt;BR /&gt;&lt;BR /&gt;for filename in `find . -name "*ftp*"; do&lt;BR /&gt;sed -e 's/uk\\sunset/uk\/sunset/g' $filenaem &amp;gt; new_file;&lt;BR /&gt;mv new_file $filename;&lt;BR /&gt;done;</description>
      <pubDate>Mon, 11 Jul 2005 06:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911617#M832431</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-07-11T06:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911618#M832432</link>
      <description>cat &amp;lt;$FILE&amp;gt; | sed 's/uk\/\sunset/uk\/sunset/g' &amp;gt; &amp;lt;$NEWFILE&amp;gt;&lt;BR /&gt;mv &amp;lt;$NEWFILE&amp;gt; &amp;lt;$FILE&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can pipe through sed</description>
      <pubDate>Mon, 11 Jul 2005 06:21:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911618#M832432</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-11T06:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911619#M832433</link>
      <description>And one with a perl twist:&lt;BR /&gt;&lt;BR /&gt;for FILE in ftp*&lt;BR /&gt;do&lt;BR /&gt;perl -pi -e 's#uk\\sunset#uk/sunset#g' $FILE&lt;BR /&gt;done</description>
      <pubDate>Mon, 11 Jul 2005 06:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911619#M832433</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-11T06:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911620#M832434</link>
      <description>uk\sunset is in the contents of the files. So if I change direcory to home/sysscr &amp;amp; do&lt;BR /&gt;&lt;BR /&gt;#for filename in `find . -name "*ftp*"; do&lt;BR /&gt;#sed -e 's/uk\\sunset/uk\/sunset/g' #$filenaem &amp;gt; new_file;&lt;BR /&gt;#mv new_file $filename;&lt;BR /&gt;#done;&lt;BR /&gt;&lt;BR /&gt;it should work fine yea?</description>
      <pubDate>Mon, 11 Jul 2005 06:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911620#M832434</guid>
      <dc:creator>Ravinder Singh Gill</dc:creator>
      <dc:date>2005-07-11T06:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911621#M832435</link>
      <description>Simply as,&lt;BR /&gt;&lt;BR /&gt;# cd /home/sysscr&lt;BR /&gt;# perl -pi -e 's/uk\\sunset/uk\/sunset/' *ftp*&lt;BR /&gt;&lt;BR /&gt;will do it.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 11 Jul 2005 06:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911621#M832435</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-07-11T06:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911622#M832436</link>
      <description>Yup.&lt;BR /&gt;&lt;BR /&gt;Now what do you prefer,&lt;BR /&gt;sed or perl.&lt;BR /&gt;&lt;BR /&gt;I think perl one will be better.&lt;BR /&gt;But i don't know perl that's why i stick to sed. ;-)&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 06:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911622#M832436</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-07-11T06:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: global change with script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911623#M832437</link>
      <description>Thanks</description>
      <pubDate>Mon, 11 Jul 2005 07:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/global-change-with-script/m-p/4911623#M832437</guid>
      <dc:creator>Ravinder Singh Gill</dc:creator>
      <dc:date>2005-07-11T07:52:57Z</dc:date>
    </item>
  </channel>
</rss>

