LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2012, 04:31 PM   #1
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Rep: Reputation: 17
Converting xlsx files to text


I need a tool that will convert a .xlsx spreadsheet to text (or CSV would be ok).

xls2txt does not appear to be able to handle this format.

I tried xlsx2csv and it complained that my input format was not .xlsx, and I'm sure it is.

I wanted to install gnumeric RPM package to get at the ssconvert utility but there were many missing dependencies.

I need something that runs within a Linux shellscript, so an external utility like Google won't do the trick.

Do I have any other options? My OS is RHEL 5.7.

Thanks,
Sanford Stein
CyberTools Inc.
 
Old 07-09-2012, 04:38 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm pretty sure that [Open|Libre]Office can save to csv format. If it's an option, MSOffice certainly can.
 
Old 07-09-2012, 07:31 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
What Pixellany said (export as csv from within the tool); also, how did you
Quote:
I wanted to install gnumeric RPM package to get at the ssconvert utility but there were many missing dependencies.
If you are using RHEL, use the yum cmd, not rpm... yum automatically handles dependencies for you.
 
Old 07-10-2012, 08:52 AM   #4
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
Chris and Pixellany,

Thanks for your responses.

I have tried 'yum install gnumeric' and 'yum install ssconvert' and both report that no such package is available.

Is Open Office available for RHEL as a yum package?

SS
 
Old 07-10-2012, 08:57 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum install gnumeric

gnumeric is in the EPEL.repo https://fedoraproject.org/wiki/EPEL
" Extra Packages for Enterprise Linux "
>> http://ftp.crc.dk/fedora-epel/5/i386...5-4.noarch.rpm

# yum install openoffice.org-base : You get version 3.1.1


.

Last edited by knudfl; 07-10-2012 at 09:04 AM.
 
Old 07-10-2012, 01:40 PM   #6
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
Both 'yum install gnumeric' and 'yum install openoffice.org-base' give me "No package available".

I downloaded the EPEL rpm and attempted to install it and got:

# rpm -i epel-release-5-4.noarch.rpm
warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
#

So I need some kind of key to install this package?

Thanks,
Sanford Stein
CyberTools Inc.
 
Old 07-10-2012, 05:33 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
So I need some kind of key to install this package ?
No. A warning is information. Not an error.
Can be ignored for the package "epel-release-5-4.noarch.rpm"
 
Old 07-11-2012, 09:54 AM   #8
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
By trial and error, I finally stumbled on the correct command:

yum install gnumeric.i386

and this gave me the ssconvert utility that I needed.

Respectfully, knudfl, I don't think the rpm install of epel-release-5-4-noarch worked. In any case, it did not install gunmeric or ssconvert.

Thanks to everyone for your responses.
 
Old 07-11-2012, 10:22 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I don't think the rpm install of epel-release-5-4-noarch worked
The package "epel-release-5-4-noarch" is mainly a text file:
/etc/yum.repos.d/epel.repo , which allows you to do :

# yum install <epel-packages>

There are about 4,000 EPEL packages for EL5.

.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
converting .xlsx to .xls from bash qrange Linux - Newbie 5 01-23-2014 08:00 AM
Converting lots of text files to Unicode Schreiberling Linux - Software 11 06-11-2013 03:24 PM
looking for software to open .xlsx files with linux tjcarol Linux - Software 3 09-28-2011 05:37 AM
Converting text files to files that can be run in the terminal. jkmurph13 Linux - Newbie 1 12-09-2008 10:33 PM
LXer: Converting text files into ODF with odtwriter LXer Syndicated Linux News 0 10-10-2007 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration