The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to generate html file using script? kittusri9 Shell Programming and Scripting 2 05-25-2008 11:38 PM
To generate the FTP Script file konankir Shell Programming and Scripting 1 04-01-2008 03:16 PM
generate new string from a text file walterwaston Shell Programming and Scripting 6 10-16-2007 03:43 PM
text file to excel or csv srikanthus2002 Shell Programming and Scripting 9 04-25-2007 12:53 PM
Modify script to generate a log file heprox Shell Programming and Scripting 2 06-14-2006 10:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2008
isingh786 isingh786 is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 75
Script to generate text file from excel file

Hello,

I have a excel file which has almost ten columns on the shared drive. I have to write a shell script to ftp that daily to unix server and then extract some columns from there and generate oracle standard text file. The columns should be in proper order and aligned properly, otherwise the oracle process is not going to read that file.

Example excel file

1 2 3 4
1st record
sg_jtfTaskCreateBd.jsp jtf /jtf/11.5.0/html
jtfTaskCreateBd.jsp
2nd record
OppPurchaseLinesDesc.class java java/oracle/apps/asf/opportunity
OppPurchaseLinesDesc.class

I have to extract these columns and generate the text file with six columns with proper alignment.

Example

jtf /jtf/11.50/html jtfTaskCreateBd.jsp jtf /jtf/11.50/html jtfTaskCreateBd.jsp

The text here is not coming on one line...But, it should be the three columns and the three columns gets repated again.

Does somebody have a sample code snippet or any ideas on how this can be done?

I would really appreciate that...

Thanks,
Inder
  #2 (permalink)  
Old 01-24-2008
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 227
Here is a link to Active State web site that has examples of how you can extract cells from an Excel spreadsheet.
ActivePerl 5.8 - Online Docs : Using OLE with Perl

This is a windows solution and you would have to use Active State perl. I believe if you do a search of this forum you should find other solutions that will work with unix and/or linux. Good luck.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0