The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help needed to combine files to excel sheet ahjiefreak Shell Programming and Scripting 5 03-30-2008 02:10 AM
how to read the data from an excel sheet and use those data as variable in the unix c Anne Grace UNIX for Advanced & Expert Users 1 03-03-2008 04:21 AM
writeExcelXML will work on existing excel sheet akash Shell Programming and Scripting 1 12-09-2007 02:49 AM
Creating Excel Sheet in Hp-UX KVSPRASAD HP-UX 5 02-07-2007 08:16 PM
Insert csv into special sheet of excel Elena UNIX for Advanced & Expert Users 2 02-07-2007 05:11 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-19-2007
Registered User
 

Join Date: Sep 2006
Posts: 55
Exporting files from unix to Excel sheet

How can we export a file in unix with certain number of columns to an excel sheet.

It's very useful in time saving......
Reply With Quote
Forum Sponsor
  #2  
Old 03-19-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
have a common delimiter,
create the file

and export it to excel sheet
and the defragmenting end, specify the delimiter
values would be split based on delimiters and available in each column

is that what you have asked far ?
Reply With Quote
  #3  
Old 03-19-2007
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
Assuming the orginal file contents
$ cat /tmp/file.txt
NAME ID YEAR
abc 25 1995
ced 34 1977
ttt 43 1983

Create a csv file,which i assume can be opened up in XL,

awk '{print $1","$2","$3}' < /tmp/file.txt > /tmp/file.csv

cat /tmp/file.csv
NAME,ID,YEAR
abc,25,1995
ced,34,1977
ttt,43,1983

Open the file.csv in Excel. Please let me know if this helps
Reply With Quote
  #4  
Old 03-21-2007
Registered User
 

Join Date: Sep 2006
Posts: 55
Quote:
Originally Posted by ennstate
Assuming the orginal file contents
$ cat /tmp/file.txt
NAME ID YEAR
abc 25 1995
ced 34 1977
ttt 43 1983

Create a csv file,which i assume can be opened up in XL,

awk '{print $1","$2","$3}' < /tmp/file.txt > /tmp/file.csv

cat /tmp/file.csv
NAME,ID,YEAR
abc,25,1995
ced,34,1977
ttt,43,1983

Open the file.csv in Excel. Please let me know if this helps

thanx......yaar........it was of grt888!!!! help.....
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0