<?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 a field in a file. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588904#M679597</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Posting samples of your input file(s) and the desired output would help answer your question.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 23 Feb 2010 12:47:46 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-02-23T12:47:46Z</dc:date>
    <item>
      <title>Replace a field in a file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588903#M679596</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I need to replace a field of a line with another pattern.The field can be empty also.&lt;BR /&gt;There are 2 files file1 and file2.&lt;BR /&gt;By refering file2 , I need to replace 5th column of file1 .&lt;BR /&gt;I can replace if the field is not empty .But when its emtpy ,I am finding difficulty to replace as there can be other fields also empty.So I need to replace according to the position.&lt;BR /&gt;&lt;BR /&gt;Could you please help me to resolve this.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muktha</description>
      <pubDate>Tue, 23 Feb 2010 08:51:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588903#M679596</guid>
      <dc:creator>Muktha</dc:creator>
      <dc:date>2010-02-23T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a field in a file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588904#M679597</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Posting samples of your input file(s) and the desired output would help answer your question.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 23 Feb 2010 12:47:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588904#M679597</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-23T12:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a field in a file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588905#M679598</link>
      <description>Not alot of info here, but....&lt;BR /&gt;&lt;BR /&gt;You could use the 'join' command and take the fields you want from file 1 or f2 (in any order) and then send the output to a new file.&lt;BR /&gt;&lt;BR /&gt;It has options not only to create a new file with the fields in any order, but it also has the -e option that might be beneficial to you.&lt;BR /&gt;&lt;BR /&gt;man join&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita</description>
      <pubDate>Wed, 24 Feb 2010 13:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588905#M679598</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-02-24T13:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a field in a file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588906#M679599</link>
      <description>I went through something similar a while back.. See this thread. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1375335" target="_blank"&gt;https://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1375335&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Mar 2010 21:45:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-a-field-in-a-file/m-p/4588906#M679599</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2010-03-02T21:45:15Z</dc:date>
    </item>
  </channel>
</rss>

