If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > how to copy data using shell script to a excel file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-28-08, 07:34
tucs_123 tucs_123 is offline
Registered User
 
Join Date: Dec 2008
Posts: 8
how to copy data using shell script to a excel file

Hi,

Can any one tell me how to copy data using shell script to a excel file from text file to other columns of excel file,leaving first column unaffected i.e it should not overwrite data in first column.

Say my text file data is:

15-dec-2008 15-dec-2009
16-dec-2008 16-dec-2009


say my first excel column is:

column1 column2 column3
server1
server2


I want output as below:

column1 | column2 | column3
server1 | 15-dec-2008 | 15-dec-2009
server2 | 16-dec-2008 | 16-dec-2009

Thanks in advance........
Reply With Quote
  #2 (permalink)  
Old 12-29-08, 15:15
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Thumbs down Not *nix

This has nothing to do with Unix, try posting in one of the WinDoze "excel" forums.
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #3 (permalink)  
Old 01-01-09, 04:29
tucs_123 tucs_123 is offline
Registered User
 
Join Date: Dec 2008
Posts: 8
Hey man...Its related to Unix only.....and I got the solution as well.....
Reply With Quote
  #4 (permalink)  
Old 01-30-09, 11:48
amin_amrelia amin_amrelia is offline
Registered User
 
Join Date: Jan 2009
Posts: 1
Hi,

Can any one tell me how to copy data using shell script to a excel file from text file to other columns of excel file,leaving first column unaffected i.e it should not overwrite data in first column.

Please help..

Thakx,
Amin
Reply With Quote
  #5 (permalink)  
Old 01-30-09, 14:11
freeBatjko freeBatjko is offline
Registered User
 
Join Date: Mar 2008
Posts: 89
Quote:
Originally Posted by LKBrwn_DBA
This has nothing to do with Unix, try posting in one of the WinDoze "excel" forums.
well if his output example is meant literally, we can create a shell script that produces a pipe-delimited flat file as a result, easily importable in excel.

But the solution is apparently already found. Would be nice to actually post it here too.
__________________
"My brain is just no good at being a relational Database - my relations suck real bad!"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On