<?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: insert lines feeds in XML document in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431939#M707416</link>
    <description>Using "vi", edit toto.pl&lt;BR /&gt;&lt;BR /&gt;go to this line:  @madman=split(/^M/);&lt;BR /&gt;&lt;BR /&gt;replace the ^M (it probably put two characters in your toto.pl instead of a ctrl-m) with \r to give:&lt;BR /&gt;&lt;BR /&gt; @madman=split(/\r/);&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Mon, 29 Nov 2004 09:12:08 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2004-11-29T09:12:08Z</dc:date>
    <item>
      <title>insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431934#M707411</link>
      <description>Hello,&lt;BR /&gt;I have an XML document with multiple tags but when I open it with notepad or vi there are only 2 lines. How could I (using sed or perl) add lines feeds / carriage returs in this files ? I tried:&lt;BR /&gt;sed "s/\/&amp;gt;/\n/g"&lt;BR /&gt;sed "s/\/&amp;gt;/^M/g"&lt;BR /&gt;but is doesn't work.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ulrich Delvaux</description>
      <pubDate>Mon, 29 Nov 2004 05:41:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431934#M707411</guid>
      <dc:creator>Delvaux Ulrich</dc:creator>
      <dc:date>2004-11-29T05:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431935#M707412</link>
      <description>#!/usr/bin/perl&lt;BR /&gt;while (&lt;STDIN&gt;) {&lt;BR /&gt;   @madman=split(/^M/);&lt;BR /&gt;   if ($#madman &amp;gt; 0) {&lt;BR /&gt;      for ( $i=0; $i &amp;lt;=$#madman; $i++ ) {&lt;BR /&gt;         $tmpline=$madman[$i];&lt;BR /&gt;         chomp($tmpline);&lt;BR /&gt;         printf("%s\n",$tmpline);&lt;BR /&gt;      }&lt;BR /&gt;   } else {&lt;BR /&gt;      $tmpline=$_;&lt;BR /&gt;      chomp($tmpline);&lt;BR /&gt;      printf("%s\n",$tmpline);&lt;BR /&gt;   }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;/STDIN&gt;</description>
      <pubDate>Mon, 29 Nov 2004 08:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431935#M707412</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-11-29T08:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431936#M707413</link>
      <description>Hello Harry,&lt;BR /&gt;&lt;BR /&gt;I don't understand your code. I tried it out but it just repeats what I type. In general what I need to do is:&lt;BR /&gt;&lt;BR /&gt;file in:&lt;BR /&gt;this is a test xxx on xxx how to xxx split&lt;BR /&gt;&lt;BR /&gt;file out:&lt;BR /&gt;this is a test&lt;BR /&gt;on&lt;BR /&gt;how to&lt;BR /&gt;split&lt;BR /&gt;&lt;BR /&gt;I don't see what the madman parameter means in the perl.&lt;BR /&gt;&lt;BR /&gt;Can you help please?</description>
      <pubDate>Mon, 29 Nov 2004 08:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431936#M707413</guid>
      <dc:creator>Delvaux Ulrich</dc:creator>
      <dc:date>2004-11-29T08:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431937#M707414</link>
      <description>Name the perl program (say zapper as shown below), then&lt;BR /&gt;&lt;BR /&gt;cat oldfile | ./zapper &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 29 Nov 2004 08:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431937#M707414</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-11-29T08:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431938#M707415</link>
      <description>Hello Harry,&lt;BR /&gt;I placed the code in toto.pl and executed:&lt;BR /&gt;cat test | ./toto.pl &amp;gt; testout&lt;BR /&gt;&lt;BR /&gt;testout contains the same as test whatever I put in test. I still don't see what the madman thing does?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Nov 2004 08:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431938#M707415</guid>
      <dc:creator>Delvaux Ulrich</dc:creator>
      <dc:date>2004-11-29T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431939#M707416</link>
      <description>Using "vi", edit toto.pl&lt;BR /&gt;&lt;BR /&gt;go to this line:  @madman=split(/^M/);&lt;BR /&gt;&lt;BR /&gt;replace the ^M (it probably put two characters in your toto.pl instead of a ctrl-m) with \r to give:&lt;BR /&gt;&lt;BR /&gt; @madman=split(/\r/);&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 29 Nov 2004 09:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431939#M707416</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-11-29T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: insert lines feeds in XML document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431940#M707417</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Now it works, thanks a lot. I also got following working:&lt;BR /&gt;&lt;BR /&gt;perl -p -e 's/\/&amp;gt;/\r\n/g' ulli.XML &amp;gt; test&lt;BR /&gt;&lt;BR /&gt;Ulrich</description>
      <pubDate>Mon, 29 Nov 2004 09:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/insert-lines-feeds-in-xml-document/m-p/3431940#M707417</guid>
      <dc:creator>Delvaux Ulrich</dc:creator>
      <dc:date>2004-11-29T09:26:53Z</dc:date>
    </item>
  </channel>
</rss>

