Search Results

Search: Posts Made By: kiranlalka
12,105
Posted By kiranlalka
(solved) Shell scripting to access SQLPLUS using variable
I have shell script which will try to login to SQL Plus and retrieve some data, based on the outcome i will proceed further

Below is the content of the file
pebblz02% cat test1.ksh
#! /bin/ksh
...
5,771
Posted By kiranlalka
Thanks
I used the below code
5,771
Posted By kiranlalka
Need to remove few characters from each line till a pattern is matched
Hi All,

I want to remove first few characthers from starting of the line till ',' Comma... which needs to be done for all the lines in the file

Eg:

File content

1,"1234",emp1,1234...
94,712
Posted By kiranlalka
Thx it worked.
Thx it worked.
94,712
Posted By kiranlalka
String compare in shell script
Iam trying to compare the string in if else... but some how its not working

following is the code


On executing the above one its giving a error message ': bad number'

in the above...
22,515
Posted By kiranlalka
Dude, have you got any better way.... if...
Dude,

have you got any better way.... if yes can share the code...

even if you used the above one can you share the code
3,210
Posted By kiranlalka
How to pass ksh array to oracle
Hi all..

Does anyone know have an example of passing the contents of a ksharray to oracle?

basically I am looking to loop through the contents of a file and store each line into a bash ksh....
3,994
Posted By kiranlalka
Hi Dude Have you got any reply
Hi Dude

Have you got any reply
2,034
Posted By kiranlalka
Echo was supposed to be echo...
Echo was supposed to be

echo ${filenames[0]};
echo ${filenames[1]};
2,034
Posted By kiranlalka
Unable to set a data to array
Hi All,

Iam trying to set the value to the array... Still its not happening

Following is the code:

#!/usr/bin/ksh

filenames[0]="x";
filenames[1]="y";
echo $filenames[0];
echo...
12,666
Posted By kiranlalka
Thanks Methyl.. It worked... BTW, Iam new to...
Thanks Methyl.. It worked... BTW, Iam new to shell scripting
12,666
Posted By kiranlalka
Incrementing a variable is not happening
Hi All,

Iam trying to increment a variable

Following is the code

#!/usr/bin/ksh
i=1;
i='expr $i+1';
echo $i;

Output:
expr $i+1

not able to understand why its happening in that...
Showing results 1 to 12 of 12

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