<?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 lines in text file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021359#M97090</link>
    <description>Try this one: &lt;BR /&gt;&lt;BR /&gt;awk '/EI/{getline t;print $0 t;next}' filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
    <pubDate>Fri, 05 Jan 2007 09:05:57 GMT</pubDate>
    <dc:creator>Ivan Krastev</dc:creator>
    <dc:date>2007-01-05T09:05:57Z</dc:date>
    <item>
      <title>change lines in text file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021358#M97089</link>
      <description>Hi, guys&lt;BR /&gt;I need a script to work a file whith this ouptut:&lt;BR /&gt;&lt;BR /&gt;EI_FNC-ARCH-DIA&lt;BR /&gt;01/05/07 14:00:00&lt;BR /&gt;&lt;BR /&gt;EI_TERC-ARCH-DIA&lt;BR /&gt;01/05/07 16:00:00&lt;BR /&gt;&lt;BR /&gt;EI_PDL-ARCH-DIA&lt;BR /&gt;01/05/07 15:30:00&lt;BR /&gt;&lt;BR /&gt;and change that output to this:&lt;BR /&gt;EI_FNC-ARCH-DIA|01/05/07|14:00:00&lt;BR /&gt;EI_TERC-ARCH-DIA|01/05/07|16:00:00&lt;BR /&gt;EI_PDL-ARCH-DIA|01/05/07|15:30:00&lt;BR /&gt;&lt;BR /&gt;Thanks for all,&lt;BR /&gt;JT</description>
      <pubDate>Fri, 05 Jan 2007 08:55:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021358#M97089</guid>
      <dc:creator>uadm26</dc:creator>
      <dc:date>2007-01-05T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: change lines in text file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021359#M97090</link>
      <description>Try this one: &lt;BR /&gt;&lt;BR /&gt;awk '/EI/{getline t;print $0 t;next}' filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 05 Jan 2007 09:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021359#M97090</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-01-05T09:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: change lines in text file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021360#M97091</link>
      <description>Hi,&lt;BR /&gt;how about:&lt;BR /&gt;grep -v '^$' a.txt| sed '$!N;s/\n/ /' |sed "s/ /|/g" &amp;gt; b.txt&lt;BR /&gt;&lt;BR /&gt;Remove a balnk lines&lt;BR /&gt;Substitute return characters&lt;BR /&gt;Substitute filed spaces with '|'&lt;BR /&gt;&lt;BR /&gt;Input data in a.txt, output data in b.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jan 2007 09:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021360#M97091</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-05T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: change lines in text file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021361#M97092</link>
      <description>Hi JT&lt;BR /&gt;&lt;BR /&gt;a quick and dirty shellscript:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat datafile |&lt;BR /&gt;while read L1; do&lt;BR /&gt;if [ -z "$L1" ]; then&lt;BR /&gt;   : # do nothing&lt;BR /&gt;else&lt;BR /&gt;   read L2&lt;BR /&gt;   echo  "$L1 $L2" &lt;BR /&gt;fi&lt;BR /&gt;done | sed "s/ /|/g"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jan 2007 09:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021361#M97092</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2007-01-05T09:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: change lines in text file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021362#M97093</link>
      <description>Ooops forgot | :&lt;BR /&gt;&lt;BR /&gt;awk '/EI/{getline t;print $0 "|" t;next}' filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 05 Jan 2007 09:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021362#M97093</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-01-05T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: change lines in text file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021363#M97094</link>
      <description>Ok that's it, thanks for all.</description>
      <pubDate>Fri, 05 Jan 2007 09:29:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-lines-in-text-file/m-p/5021363#M97094</guid>
      <dc:creator>uadm26</dc:creator>
      <dc:date>2007-01-05T09:29:12Z</dc:date>
    </item>
  </channel>
</rss>

