<?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: convert text file to  binary excel file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426914#M205100</link>
    <description>Excel has a very complex file format that varies with the revision of Excel used to save the file. It is certainly easy to take data in a file and convert it to .csv (Comma Delimited Values). Even if you did convert a .csv to Excel format, you'd still have to open the file in Excel--which is exactly what you would do to open the .csv file--and the results would be the same.</description>
    <pubDate>Sun, 21 Nov 2004 21:34:56 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2004-11-21T21:34:56Z</dc:date>
    <item>
      <title>convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426909#M205095</link>
      <description>is there any method / tools good to convert text file (eg. .csv / .prn) to excel file on the shell ? thx</description>
      <pubDate>Sun, 21 Nov 2004 03:00:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426909#M205095</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-11-21T03:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426910#M205096</link>
      <description>Not sure if there is a command to do this.  There are however other commands to convert files, e.g.&lt;BR /&gt;&lt;BR /&gt;DOS convervsion (ux2dos), e.g.&lt;BR /&gt;ux2dos hpux.file &amp;gt; dos.file&lt;BR /&gt;&lt;BR /&gt;dd (convert and copy a file) &lt;BR /&gt;Check out the man page.. you need to see the&lt;BR /&gt;"-conv" switch option.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Nov 2004 05:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426910#M205096</guid>
      <dc:creator>Neil Wilson_2</dc:creator>
      <dc:date>2004-11-21T05:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426911#M205097</link>
      <description>I personally would use excel to do that conversion.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 21 Nov 2004 11:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426911#M205097</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-21T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426912#M205098</link>
      <description>Like SEP I just have Excel do it.&lt;BR /&gt;I have 'associated' the .cvs extention with Excell. So if I open (doubleclick) a .csv file on my pc, it invokes Excell and just works. I then 'save as' ... 'excel workbook' to save it as a binary, full functionallity .xls file.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Nov 2004 20:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426912#M205098</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-21T20:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426913#M205099</link>
      <description>Hi,&lt;BR /&gt;    Make excel as the default program to  open .csv file. Thats it. Next time onwords CSV files will get opened with excel automatically.&lt;BR /&gt;&lt;BR /&gt;    But do u want this to be used in the shell as you mentioned?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Sun, 21 Nov 2004 21:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426913#M205099</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2004-11-21T21:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426914#M205100</link>
      <description>Excel has a very complex file format that varies with the revision of Excel used to save the file. It is certainly easy to take data in a file and convert it to .csv (Comma Delimited Values). Even if you did convert a .csv to Excel format, you'd still have to open the file in Excel--which is exactly what you would do to open the .csv file--and the results would be the same.</description>
      <pubDate>Sun, 21 Nov 2004 21:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426914#M205100</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-21T21:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426915#M205101</link>
      <description>But if you really want it, it can be done using perl and the SpreadSheet::WriteExcel module... I've done it and it works (even on HP-UX). But it takes some programming knowledge and perhaps a good compile environment to make it work. And you might need some extra modules.&lt;BR /&gt;&lt;BR /&gt;There is even a DBD for excel files. It is really beta, and gets awfully slow when inserting 17000 lines of data in a worksheet (table), but it works too. And is a bit easier to use. But it uses a lot of other modules, like SpreadSheet::WriteExcel, SpreadSheet::ParseExcel, etc.&lt;BR /&gt;&lt;BR /&gt;You might also look into openoffice. I don't know if you can do it use it from commandline to do what you want, but it should work.&lt;BR /&gt;&lt;BR /&gt;It's probably easier to do it using Excel. If you want formatting done the right way, use Excel macro's or make sure Excel can not make faults when importing the data by using formats that can only be interpreted one way (dates are the main issue here. In the Netherlands, we use a dateformat of dd-mm-yyyy. But an english Excel version will 01-11-2004 as 11th of january, not the 1st of november... By using yyyy-mm-dd as the date format, excel will never misunderstand a date from your file).</description>
      <pubDate>Mon, 22 Nov 2004 02:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426915#M205101</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-11-22T02:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: convert text file to  binary excel file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426916#M205102</link>
      <description>thx Elmar P. Kolkman 's reply , &lt;BR /&gt;&lt;BR /&gt;I have downloaded the module that you memtioned and try some example , it seems ok to write  some lines to the excel file , but I have a problem to use this module , I just want to convert the file from .prn to excel format , i tried the below script , but the excel file tab.xls can't be read , I am no need any formatting , could suggest how to modify the script so that I can convert the file ? thx.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;    use strict;&lt;BR /&gt;    use Spreadsheet::WriteExcel;&lt;BR /&gt;&lt;BR /&gt;    open (TABFILE, "tab.txt") or die "tab.txt: $!";&lt;BR /&gt;&lt;BR /&gt;    my $workbook  = Spreadsheet::WriteExcel-&amp;gt;new("tab.xls");&lt;BR /&gt;    my $worksheet = $workbook-&amp;gt;add_worksheet();&lt;BR /&gt;&lt;BR /&gt;    # Row and column are zero indexed&lt;BR /&gt;    my $row = 0;&lt;BR /&gt;&lt;BR /&gt;    while (&lt;TABFILE&gt;) {&lt;BR /&gt;        chomp;&lt;BR /&gt;        # Split on single tab&lt;BR /&gt;        my @Fld = split('\t', $_);&lt;BR /&gt;&lt;BR /&gt;        my $col = 0;&lt;BR /&gt;        foreach my $token (@Fld) {&lt;BR /&gt;            $worksheet-&amp;gt;write($row, $col, $token);&lt;BR /&gt;            $col++;&lt;BR /&gt;        }&lt;BR /&gt;        $row++;&lt;BR /&gt;    }&lt;/TABFILE&gt;</description>
      <pubDate>Tue, 23 Nov 2004 01:31:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/convert-text-file-to-binary-excel-file/m-p/3426916#M205102</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-11-23T01:31:09Z</dc:date>
    </item>
  </channel>
</rss>

