<?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: Add return feed. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783159#M722545</link>
    <description>try &lt;BR /&gt;dos2ux filename &amp;gt; filename.ux&lt;BR /&gt;similarly&lt;BR /&gt;ux2dos filename.ux &amp;gt; filename.winders&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
    <pubDate>Fri, 09 Aug 2002 13:51:36 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2002-08-09T13:51:36Z</dc:date>
    <item>
      <title>Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783157#M722543</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I get these files from NT world. When i open them with vi, i get the message "Incomplete Last line". Also each line has ^M characters except the last line. I am tryin to use sed to strip the ^M characters (cat $file | sed 's/^V^M//g' &amp;gt; $file.new) but this deletes the last line too. &lt;BR /&gt;So i am trying to figure out some way to add a return feed to just the last line before running the sed part.&lt;BR /&gt;&lt;BR /&gt;I assume this will retain the last line after running the sed part.&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;TIA.</description>
      <pubDate>Fri, 09 Aug 2002 13:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783157#M722543</guid>
      <dc:creator>Jack Daniels_1</dc:creator>
      <dc:date>2002-08-09T13:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783158#M722544</link>
      <description>Check out the dos2ux command.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 09 Aug 2002 13:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783158#M722544</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-08-09T13:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783159#M722545</link>
      <description>try &lt;BR /&gt;dos2ux filename &amp;gt; filename.ux&lt;BR /&gt;similarly&lt;BR /&gt;ux2dos filename.ux &amp;gt; filename.winders&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 09 Aug 2002 13:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783159#M722545</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-08-09T13:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783160#M722546</link>
      <description>The dos2ux command will do this for you. Man dos2ux. &lt;BR /&gt;&lt;BR /&gt;Plan B. If you are transferring these files via FTP, use the ascii command prior to the put or get and the conversion will be automatic.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Aug 2002 13:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783160#M722546</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-09T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783161#M722547</link>
      <description>Hi Jack&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Coupe of ways to do it &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dos2ux filename &amp;gt; newfileanem &lt;BR /&gt;&lt;BR /&gt;will get rid of the ^M &lt;BR /&gt;&lt;BR /&gt;also&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat filename | sed -e "1,$s/\^M//g" should do the trick&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Aug 2002 13:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783161#M722547</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-08-09T13:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783162#M722548</link>
      <description>Other ways than dos2ux just posted today in &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd6f956bd90a9d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd6f956bd90a9d611abdb0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Fri, 09 Aug 2002 14:09:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783162#M722548</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-08-09T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783163#M722549</link>
      <description>Nearly same question, but same solution applies :&lt;BR /&gt;&lt;BR /&gt;cat &lt;YOU file=""&gt; | tr -d "\r" &amp;gt; &lt;YOUR new="" file=""&gt; &lt;BR /&gt;&lt;BR /&gt;Jean-Luc&lt;/YOUR&gt;&lt;/YOU&gt;</description>
      <pubDate>Fri, 09 Aug 2002 14:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783163#M722549</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-08-09T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783164#M722550</link>
      <description>Also Jack&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;look at this thread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd6f956bd90a9d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd6f956bd90a9d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Fri, 09 Aug 2002 14:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783164#M722550</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-08-09T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783165#M722551</link>
      <description>MANOY, not that I begrudge you points, but what does your answer add to mine? more than 10 minutes later. I guess you would have read the thread before you post.&lt;BR /&gt;&lt;BR /&gt;N/A</description>
      <pubDate>Fri, 09 Aug 2002 14:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783165#M722551</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-08-09T14:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783166#M722552</link>
      <description>THanks to everyone for the immediate response. (yes, i need to go back and give points.)&lt;BR /&gt;&lt;BR /&gt;To go back to the problem...&lt;BR /&gt;Oops, My mistake!(So full marks to everyone) I forgot to mention that i have already tried the dos2unix option. It removes the ^M fine but the subsequent job which uses the file fails. &lt;BR /&gt;&lt;BR /&gt;So i manually added a return to the end of the last line and it works fine.&lt;BR /&gt;&lt;BR /&gt;So it appears that i need to find a way to get a return feed at the end of the last line only.&lt;BR /&gt;&lt;BR /&gt;Any help??&lt;BR /&gt;TIA.&lt;BR /&gt;&lt;BR /&gt;I have attached a sample file.</description>
      <pubDate>Fri, 09 Aug 2002 14:50:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783166#M722552</guid>
      <dc:creator>Jack Daniels_1</dc:creator>
      <dc:date>2002-08-09T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783167#M722553</link>
      <description>remove the ^M from the last line only:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 'BEGIN{$/=undef}s/\r\Z//' infile &amp;gt;outfile</description>
      <pubDate>Fri, 09 Aug 2002 15:10:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783167#M722553</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-08-09T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add return feed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783168#M722554</link>
      <description>Hi&lt;BR /&gt;If you want to add a linefeed only to the last line this is the same as appending a linefeed to the file. &lt;BR /&gt;echo '\n' &amp;gt;&amp;gt;filename.</description>
      <pubDate>Fri, 09 Aug 2002 16:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-return-feed/m-p/2783168#M722554</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-09T16:09:56Z</dc:date>
    </item>
  </channel>
</rss>

