- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- convert text file to binary excel file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2004 07:00 PM
тАО11-20-2004 07:00 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2004 09:04 PM
тАО11-20-2004 09:04 PM
SolutionDOS convervsion (ux2dos), e.g.
ux2dos hpux.file > dos.file
dd (convert and copy a file)
Check out the man page.. you need to see the
"-conv" switch option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2004 03:18 AM
тАО11-21-2004 03:18 AM
Re: convert text file to binary excel file
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2004 12:16 PM
тАО11-21-2004 12:16 PM
Re: convert text file to binary excel file
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.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2004 01:13 PM
тАО11-21-2004 01:13 PM
Re: convert text file to binary excel file
Make excel as the default program to open .csv file. Thats it. Next time onwords CSV files will get opened with excel automatically.
But do u want this to be used in the shell as you mentioned?
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2004 01:34 PM
тАО11-21-2004 01:34 PM
Re: convert text file to binary excel file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2004 06:14 PM
тАО11-21-2004 06:14 PM
Re: convert text file to binary excel file
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.
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.
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 05:31 PM
тАО11-22-2004 05:31 PM
Re: convert text file to binary excel file
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.
#!/usr/bin/perl -w
use strict;
use Spreadsheet::WriteExcel;
open (TABFILE, "tab.txt") or die "tab.txt: $!";
my $workbook = Spreadsheet::WriteExcel->new("tab.xls");
my $worksheet = $workbook->add_worksheet();
# Row and column are zero indexed
my $row = 0;
while (
chomp;
# Split on single tab
my @Fld = split('\t', $_);
my $col = 0;
foreach my $token (@Fld) {
$worksheet->write($row, $col, $token);
$col++;
}
$row++;
}