<?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: Change on multiple files... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645682#M239799</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I believe you will have to run a loop&lt;BR /&gt;such as&lt;BR /&gt;for filename in $(ls ff*)&lt;BR /&gt;do&lt;BR /&gt;...&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
    <pubDate>Mon, 10 Oct 2005 12:31:20 GMT</pubDate>
    <dc:creator>Jean-Luc Oudart</dc:creator>
    <dc:date>2005-10-10T12:31:20Z</dc:date>
    <item>
      <title>Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645679#M239796</link>
      <description>Hi,&lt;BR /&gt;Is there a way to make global change on a multiple files using any command.&lt;BR /&gt;I know that I can feed sed only with &amp;lt; fname,&lt;BR /&gt;can I specify multiple files?&lt;BR /&gt;Let say I need to change 'white' for 'black' in files ff1,ff2,ff3,ff4....f99.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Dai&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2005 12:26:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645679#M239796</guid>
      <dc:creator>Vittorio_3</dc:creator>
      <dc:date>2005-10-10T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645680#M239797</link>
      <description>Try this .&lt;BR /&gt;&lt;BR /&gt;ls -1 ff* |while read file ;do&lt;BR /&gt;&lt;BR /&gt;sed 's/white/black/g' &amp;gt;$file.new&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;bl.</description>
      <pubDate>Mon, 10 Oct 2005 12:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645680#M239797</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2005-10-10T12:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645681#M239798</link>
      <description>for FILE in "ff1 ff2 ff3 ff4 f99"&lt;BR /&gt;do&lt;BR /&gt;sed &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 10 Oct 2005 12:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645681#M239798</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-10-10T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645682#M239799</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I believe you will have to run a loop&lt;BR /&gt;such as&lt;BR /&gt;for filename in $(ls ff*)&lt;BR /&gt;do&lt;BR /&gt;...&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Mon, 10 Oct 2005 12:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645682#M239799</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-10-10T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645683#M239800</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;perl -pi -e 's/white/black/g' $file1 $file2 ... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2005 12:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645683#M239800</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2005-10-10T12:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645684#M239801</link>
      <description>Also just to note if you just want to replace the first occurence on a line you should leave the g off the end of the s/white/black/g so it would look like s/white/black&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2005 12:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645684#M239801</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2005-10-10T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645685#M239802</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You could use perl and edit the files inpalce:&lt;BR /&gt;&lt;BR /&gt;# perl -i.old -pe 's/hello/bye/' file1 file2 file3&lt;BR /&gt;&lt;BR /&gt;In the above example, a backup copy of the original files is preseved as "*.old".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 10 Oct 2005 12:38:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645685#M239802</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-10-10T12:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645686#M239803</link>
      <description>one more idea if your list of files is large. &lt;BR /&gt;you can create a file with all the files in it. &lt;BR /&gt;&lt;BR /&gt;perl -pi -e 's/white/black/' `cat list`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2005 12:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645686#M239803</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2005-10-10T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change on multiple files...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645687#M239804</link>
      <description>If you want a little more control, or the chance to review changes before saving each file in place, reasonably current versions (I've got 5.3 from 6/2002) of the full-screen (motif) editor "nedit" ( &lt;A href="http://www.nedit.org/" target="_blank"&gt;http://www.nedit.org/&lt;/A&gt; available for 11i at the hpux porting centre, &lt;A href="http://hpux.cs.utah.edu/" target="_blank"&gt;http://hpux.cs.utah.edu/&lt;/A&gt; and mirrors) is a Godsend. The "Replace" option is under the "Search" menu.</description>
      <pubDate>Tue, 11 Oct 2005 09:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-on-multiple-files/m-p/3645687#M239804</guid>
      <dc:creator>Kirby A. Joss</dc:creator>
      <dc:date>2005-10-11T09:16:01Z</dc:date>
    </item>
  </channel>
</rss>

