<?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: Help required with a script or file filter in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300726#M12600</link>
    <description>cat file |tr "\n" " " # This will leave a space between them if u do not need that&lt;BR /&gt;&lt;BR /&gt;cat file |tr "\n" " " |sed "s/\ //g"&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Jun 2004 23:02:29 GMT</pubDate>
    <dc:creator>KapilRaj</dc:creator>
    <dc:date>2004-06-09T23:02:29Z</dc:date>
    <item>
      <title>Help required with a script or file filter</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300722#M12596</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I have an output file that I need to re-format.  Unfortunately, one of our tools - which can not be re-written or modified, outputs a file in this format.&lt;BR /&gt;&lt;BR /&gt;CACAATGAGAAATACCTGGTGGTGCTCAGCTCA&lt;BR /&gt;CTCAGATTGTTCCACATATTCTAGAATAAATAA&lt;BR /&gt;ACGAAAGTCTAAAGTACTAAGTTTAGGCAATAC&lt;BR /&gt;TCTCTCTCAAGGGCTTCAGCAGGCCCCCAACCT&lt;BR /&gt;TACTCAAAGTATAGCAGGATAGTATATTTCAAA&lt;BR /&gt;and so on. &lt;BR /&gt;&lt;BR /&gt;However, we want to remove the formatting or the right carriage return at the end of each line so that the output would look like this:&lt;BR /&gt;&lt;BR /&gt;CACAATGAGAAATACCTGGTGGTGCTCAGCTCACTCAGATTGTTCCACATATTCTAGAATAAATAAACGAAAGTCTAAAGTACTAAGTTTAGGCAATACTCTCTCTCAAGGGCTTCAGCAGGCCCCCAACCTTACTCAAAGTATAGCAGGATAGTATATTTCAAA&lt;BR /&gt;&lt;BR /&gt;Any ideas/suggestions?&lt;BR /&gt;&lt;BR /&gt;This is running on Redhat 9.0.</description>
      <pubDate>Wed, 09 Jun 2004 14:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300722#M12596</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2004-06-09T14:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with a script or file filter</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300723#M12597</link>
      <description>awk 'printf "%s", $0}' filename &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;JP</description>
      <pubDate>Wed, 09 Jun 2004 15:25:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300723#M12597</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-06-09T15:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with a script or file filter</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300724#M12598</link>
      <description>Or a simpler:&lt;BR /&gt;&lt;BR /&gt;tr -d "\n" &amp;lt; file &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 19:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300724#M12598</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-06-09T19:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with a script or file filter</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300725#M12599</link>
      <description>And using perl....&lt;BR /&gt;&lt;BR /&gt;perl -pe 'chop' &amp;lt; file &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;-p = implicit read loop and print $_ at end&lt;BR /&gt;-e = immediate command line&lt;BR /&gt;'chop' = the entire program :-). Takes last character from line which is the \n&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 22:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300725#M12599</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-06-09T22:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with a script or file filter</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300726#M12600</link>
      <description>cat file |tr "\n" " " # This will leave a space between them if u do not need that&lt;BR /&gt;&lt;BR /&gt;cat file |tr "\n" " " |sed "s/\ //g"&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 23:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-required-with-a-script-or-file-filter/m-p/3300726#M12600</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-06-09T23:02:29Z</dc:date>
    </item>
  </channel>
</rss>

