The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Write to a CD in SCO zmaster18 SCO 4 04-10-2008 05:04 PM
how to write to Solaris BSM log JDO High Level Programming 0 01-04-2008 04:01 PM
how to write LAKSHMI NARAYAN Shell Programming and Scripting 2 07-13-2007 09:50 AM
How to Write RPM kjannu UNIX for Dummies Questions & Answers 1 06-23-2006 09:23 AM
tar write err Kevin Pryke UNIX for Dummies Questions & Answers 4 05-17-2002 10:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-28-2006
kotasateesh kotasateesh is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 39
Exclamation how to write into an Excell

Hello All,
I have a query inside a shell script and it will retun a 1000 rows result set. how can i take the output into an excel file from the script for better viewing the results.

Thanks,
Sateesh
  #2 (permalink)  
Old 07-28-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Cool

hi,

U can use

isql -Username -Ppassword -Ddatabse -Sserver -iinputfilename -ooutputfilename -w1200 -s,

Here input filenaem should cntin the query you want

Ex:

inputfilename

select * from Accounts
go

note go should be there


Thanks,
Arun
  #3 (permalink)  
Old 07-28-2006
kotasateesh kotasateesh is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 39
Thanks Anil,
How about if i have a stored proc but not a sql query
  #4 (permalink)  
Old 07-28-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
HI,

First i am not Anil i am arun

second

if u are running a proc u can do as


inputfilename

select * from Accounts
go


instead of

inputfile name

exec yourproc
go


Thanks,
Arun.
  #5 (permalink)  
Old 07-28-2006
kotasateesh kotasateesh is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 39
Sorry for specifing the wrong name Arun. I will try this.
Thanks for your help.

Thanks,
Sateesh
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 09:07 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