Search Results

Search: Posts Made By: arundhati_s
2,091
Posted By arundhati_s
Getting error on for loop - bash script
Hi,
I am working on bash script after a long time. I am getting error near done statement while running a for loop snippet. The error says "Syntax error near unexpcted token 'done'"

please...
38,669
Posted By arundhati_s
How to write to .csv file
Hello All,

I am writing a shell script in which I am reading from a .csv file.
I am capturing the data of the .csv file into variable. Now after doing some manipulation on those variables I want...
2,281
Posted By arundhati_s
Thanks Ranjithpr and ctaylor. I find the...
Thanks Ranjithpr and ctaylor.

I find the second suggestion better because it executes the query in one go. Thanks a lot for your help :)
2,281
Posted By arundhati_s
file is getting overwritten
Hello All,

I am writing a bash script on Solaris O/S. I looping through an array. For each iteration, i connect to the datatabase and use select statement. Output of which is redirected to .CSV...
6,958
Posted By arundhati_s
Hi Citaylor, i applied your suggestion and...
Hi Citaylor,

i applied your suggestion and got to know that there was silly mistake in the select statement. There is , before from which was causing all the problems.
Thanks for your suggestion...
6,958
Posted By arundhati_s
Hi, I am getting the output on screen like...
Hi,

I am getting the output on screen like following

logging args
logging stdin

but nothing after that. I have to abort the script as before.

We are not even reaching to the problem and...
6,958
Posted By arundhati_s
Thanks citalor for your suggestion. I applied...
Thanks citalor for your suggestion. I applied your suggestion like following.

#!/usr/bin/ksh
echo $* > /tmp/foo
cat - >> /tmp/foo

currency_pair=("${currency_pair[@]}" "RVL EUR-CHF") #array...
6,958
Posted By arundhati_s
I unidented "EOF'". I removed all the spaces....
I unidented "EOF'". I removed all the spaces. Still I get the same result. Any other suggestion please?
6,958
Posted By arundhati_s
for each value in an array, execute select statement
Hello All,

I am new to shell scripting. I am working on Solaris O/S, bash script and sybase programming.

I want to loop through multiple values in an array and for each value, I
want to...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 10:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy