Search Results

Search: Posts Made By: KrishnaSaran
15,707
Posted By KrishnaSaran
can u pls give me some example of that? My...
can u pls give me some example of that?

My requirement is that the, db shutdown should be invoked through executing shell script.
15,707
Posted By KrishnaSaran
Shell script to invoke db startup/shutdown
Hi all,

I have a shell script which does db shutdown ..the script snippet which does this is as follows:

function call_sql_plus {
${SQLPLUS:-sqlplus} -s /nolog <<EOF
EXIT;...
9,219
Posted By KrishnaSaran
Looping through each line of text file
Dear all,

I have a text file like below.

eg.txt

abcd
efgh
ijkl
mnop



I need a script, which should read the text file eg.txt and assign each line as a parameter. This , i wil use...
28,207
Posted By KrishnaSaran
Hi All, Need someone's help urgently on...
Hi All,

Need someone's help urgently on this.

Pls let me know.

With Regards
4,094
Posted By KrishnaSaran
PL/SQL function from shell script
Hi All,

I have a shell script in which i want to invoke PL/SQL function and importantly get the return value from the PL/SQL function.

Pls let me know how to go about this.

Regards,
Krishna
28,207
Posted By KrishnaSaran
Hi, I got it working like this : if [ -n...
Hi,

I got it working like this :
if [ -n "`tail -1c $file`" ]
then
echo >> $file
fi

This wil append new-line at the EOF if it does not exists.

I have some more file-level...
28,207
Posted By KrishnaSaran
Hi, The above command does not seek to work....
Hi,

The above command does not seek to work.

I tried echo >> file
It is appending the newline at the end of file.

But can you help me in putting with a condition to check whether
if...
21,994
Posted By KrishnaSaran
Append newline at the file end
Hi All,

Is there any way to append a newline character at the end of a file(coma-separated file), through shell script?

I need to check whether newline character exists at the end of a file, if...
28,207
Posted By KrishnaSaran
Hi , The above code works fine. I want to...
Hi ,

The above code works fine.
I want to run the script after adding newline character at the end of file.

Pls let me know how to append a newline character at the end of the file, if it does...
9,282
Posted By KrishnaSaran
Hi, Thanks for your quick reply. Your...
Hi,

Thanks for your quick reply.
Your command actually prints the last field of first and last line, whereas what i need is the number of fields of first and last line, to be assigned to...
9,282
Posted By KrishnaSaran
assign values from awk output - help
Dear All,

I have a command which gives the number of fields of each line of a comma-separated file.

sthng like this :
cat QDB_20071126_002.bad | awk -F"," '{ print NF }'

I need to assign...
28,207
Posted By KrishnaSaran
Unix shell script to parse the contents of comma-separated file
Dear All,

I have a comma-separated file.
1. The first line of the file(header) should have 4 commas(5 fields).
2. The last line of the file should have 1 comma(2 fields).

Pls help me in...
Showing results 1 to 12 of 12

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