<?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 Perl text formating help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402822#M70947</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a bunch of text files that are messed up when I open them up in word.  Is there a way in perl to format the txt file so that it appears in word correctly.  Please see the attahed file in MS word to see that the formating of the txt file is messed up.&lt;BR /&gt;&lt;BR /&gt;Below is a part of the file and you can see that the carriage returns are the problem.&lt;BR /&gt;&lt;BR /&gt;Is there a way to fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks For the help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dear Mr.,&lt;BR /&gt;&lt;BR /&gt;Mercury pollution from power plants poses a serious threat to pregnant &lt;BR /&gt;women,&lt;BR /&gt;fetuses, and children. It causes learning disabilities and other &lt;BR /&gt;neurological&lt;BR /&gt;disorders.&lt;BR /&gt;&lt;BR /&gt;The Clean Air Act requires the EPA to set limits on hazardous power-plant &lt;BR /&gt;pollution&lt;BR /&gt;such as mercury, taking into account the maximum reductions that are &lt;BR /&gt;achievable&lt;BR /&gt;using current technology. The EPA said it could require a 90% reduction in &lt;BR /&gt;mercury&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Oct 2004 17:37:06 GMT</pubDate>
    <dc:creator>Shaf_1</dc:creator>
    <dc:date>2004-10-18T17:37:06Z</dc:date>
    <item>
      <title>Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402822#M70947</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a bunch of text files that are messed up when I open them up in word.  Is there a way in perl to format the txt file so that it appears in word correctly.  Please see the attahed file in MS word to see that the formating of the txt file is messed up.&lt;BR /&gt;&lt;BR /&gt;Below is a part of the file and you can see that the carriage returns are the problem.&lt;BR /&gt;&lt;BR /&gt;Is there a way to fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks For the help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dear Mr.,&lt;BR /&gt;&lt;BR /&gt;Mercury pollution from power plants poses a serious threat to pregnant &lt;BR /&gt;women,&lt;BR /&gt;fetuses, and children. It causes learning disabilities and other &lt;BR /&gt;neurological&lt;BR /&gt;disorders.&lt;BR /&gt;&lt;BR /&gt;The Clean Air Act requires the EPA to set limits on hazardous power-plant &lt;BR /&gt;pollution&lt;BR /&gt;such as mercury, taking into account the maximum reductions that are &lt;BR /&gt;achievable&lt;BR /&gt;using current technology. The EPA said it could require a 90% reduction in &lt;BR /&gt;mercury&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 17:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402822#M70947</guid>
      <dc:creator>Shaf_1</dc:creator>
      <dc:date>2004-10-18T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402823#M70948</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Give this a try (assuming you are running Linux):&lt;BR /&gt;&lt;BR /&gt;fmt 161950.txt&lt;BR /&gt;&lt;BR /&gt;The 'fmt' command is a simple text reformatter and should reformat your text file.  &lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 20:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402823#M70948</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-10-18T20:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402824#M70949</link>
      <description>Hello JP,&lt;BR /&gt;&lt;BR /&gt;Does the new formated version get saved as the same file name?  I ran the command fmt 98788.txt and opened the file in MS word after word.  The text is still the same as before.  With this command should the document come up in word correctly?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 18 Oct 2004 20:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402824#M70949</guid>
      <dc:creator>Shaf_1</dc:creator>
      <dc:date>2004-10-18T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402825#M70950</link>
      <description>You'll have to redirect the output to another filename, like this:&lt;BR /&gt;&lt;BR /&gt;fmt 161950.txt &amp;gt;161950.new.txt&lt;BR /&gt;&lt;BR /&gt;or something like that.  If you want to replace the original file with the new one, you'll have to rename it (after making sure the new file is what you want)&lt;BR /&gt;&lt;BR /&gt;mv 161950.new.txt 161950.txt&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 20:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402825#M70950</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-10-18T20:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402826#M70951</link>
      <description>Hello JP,&lt;BR /&gt;&lt;BR /&gt;You are a life saver.  I have one more question.  How could I run the command for a bunch of files at once where the files will be formated and saved? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 18 Oct 2004 21:00:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402826#M70951</guid>
      <dc:creator>Shaf_1</dc:creator>
      <dc:date>2004-10-18T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402827#M70952</link>
      <description>Try something like this:&lt;BR /&gt;&lt;BR /&gt;for f in *.txt&lt;BR /&gt;do&lt;BR /&gt;  fmt $f &amp;gt;${f}.new&lt;BR /&gt;  mv $f.new $f&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Replace the '*.txt' with whatever filespec that matches the files you need to work on.  &lt;BR /&gt;&lt;BR /&gt;Have fun!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 21:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402827#M70952</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-10-18T21:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Perl text formating help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402828#M70953</link>
      <description>Thank you so much for all your help.</description>
      <pubDate>Thu, 21 Oct 2004 10:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-text-formating-help/m-p/3402828#M70953</guid>
      <dc:creator>Shaf_1</dc:creator>
      <dc:date>2004-10-21T10:30:19Z</dc:date>
    </item>
  </channel>
</rss>

