LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2011, 02:09 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
text convert to excel


We would like to use linux tools to convert csv file to excel file , can advise any simple tools can do that ? thx
 
Old 01-14-2011, 02:13 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What does the csv file look like?

In general any csv file can be imported into excel as long as there is a unique separator (if it is an actual csv file, that is already the case).

Hope this helps.
 
Old 01-14-2011, 06:08 AM   #3
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Hmmm... I'd be inclined to be lazy and open the .csv file with OpenOffice Calc then save it as a .xls file. or were you looking for some sort of scripting solution...?

Play Bonny!

Last edited by Soadyheid; 01-14-2011 at 06:09 AM.
 
Old 01-14-2011, 06:12 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by Soadyheid View Post
Hmmm... I'd be inclined to be lazy and open the .csv file with OpenOffice Calc then save it as a .xls file.
Why the long way around? As I already mentioned: You can load/import the file straight into excel (if that file is an actual csv file).
 
Old 01-16-2011, 10:11 PM   #5
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by druuna View Post
Hi,

What does the csv file look like?

In general any csv file can be imported into excel as long as there is a unique separator (if it is an actual csv file, that is already the case).

Hope this helps.
it just as a standard csv file , the text is separated by "" sige .

if I just want to use linux tool to convert it , can adivse what tool I should use ? Thx
 
Old 01-16-2011, 11:06 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
If it's a csv file, then the separator is a comma ','. As above, Excel automatically recognises and will load a csv without any conversion needing to be done.
You may need to check that the FTP or other txfr process results in MS type line endings.
 
Old 01-17-2011, 03:45 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi elainelaw,

Maybe this will help: Excel: How to Import CSV Files

The link also explains how to set the delimiter (as in your case, the example used is a space). Based on excel 2007, but I guess the other versions are basically the same.

Hope this helps.
 
Old 01-17-2011, 05:22 AM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
Hi,
Quote:
Originally Posted by Soadyheid View Post
Hmmm... I'd be inclined to be lazy and open the .csv file with OpenOffice Calc then save it as a .xls file.
Why the long way around? As I already mentioned: You can load/import the file straight into excel (if that file is an actual csv file).
I know you can load .csv files directly into Excel but for me to do this under Linux I'd have to probably load up Wine and go and buy a copy of MS office to get use of Excel. I'd consider this a longer way round than using Open Office.
As this is a Linux forum I'm assuming the question was asked in a Linux context.
(However, I usually find "Assume" = 1st mistake! )

Play Bonny!
 
Old 01-17-2011, 11:09 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
the difficulty being that ms-excel is a proprietary format so any scripting will be fairly complex (especially since bash doesnt process binary very well):

google("bash csv to xls")[2] = http://forums.devshed.com/perl-progr...ls-603977.html

happy hacking.
 
  


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
convert excel to csv and html thelonius Programming 3 03-28-2007 11:16 AM
Convert Excel spreadsheet to Open Office. Nick_James Programming 6 01-09-2006 06:03 AM
Convert Excel to CVS from command line? technick Linux - Software 0 12-27-2005 03:55 PM
convert text file to binary excel file ust Linux - General 2 11-23-2004 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:18 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