Search Results

Search: Posts Made By: LoneRanger
1,754
Posted By LoneRanger
Can you please explain what does "1" at the end...
Can you please explain what does "1" at the end does? I can see that i dont need to write print $0 to print the complete line
1,754
Posted By LoneRanger
Convert a numeric to 2 decimal point value
Hi , I have a file which contains text like

A|Mau|Code|12|Detail
B|Mau|Code|20|Header

I want to write a command using awk which will output

A|Mau|Code|12.00|Detail...
2,352
Posted By LoneRanger
Trap the EXIT_CODE from a script
Hi All,

I have a script which calls SQLPLUS and do some data cleanup. But sometimes the SQL hangs and the script keeps on running.
In that case, we kill the script using "kill" command, but as...
2,342
Posted By LoneRanger
UNIX Date function with -d options
Hi ,

I couldn't understand how this program works. Can somebody please explain it to me.

DT=`date -d "1 day"` # This part I understand
echo ${DT/ */} # How this works
echo ${DT/* /}
3,300
Posted By LoneRanger
This is being called like this ...
This is being called like this

${MMHOME}/external/scripts/belk_nil_prc_thread.ksh 10 20



##Inside belk_nil_prc_thread.ksh



function EXEC_BELK_NEW_ITEM_LOC_PRICING
{
echo "set...
3,300
Posted By LoneRanger
I am calling the script using the notation...
I am calling the script using the notation /path/called_script.sh

and not ./called_script.sh

do you think it's making a difference?
3,300
Posted By LoneRanger
Passing variable from called script to the caller script
Hi all,

Warm regards!

I am in a difficult situation here. I have been trying to create a shell script which calls another shell script inside. Here is a simplified version of the same.
...
1,449
Posted By LoneRanger
Don't you understand he is unable to think a way...
Don't you understand he is unable to think a way out. If he could write the code why would he come to ask for help. He has an idea but not the necessary coding skills. So all is he asking for some...
2,417
Posted By LoneRanger
Hmm got your point. one quick question does set...
Hmm got your point. one quick question does set +x turns off tracing as opposed to set -x ?
2,417
Posted By LoneRanger
Getting Error in with cat command
Hi All ,
Below is the script which I have written -

export LOGDIR=/home/rmsbatch/testdata


# TEMPDIR : Path where all non zero files need to be moved after search.
export...
1,890
Posted By LoneRanger
Creating IN list in PLSQL script dynamically by using shell script
Hi all,

I have a PLSQL script which has a IN list where it takes some ids as input. For example

SELECT * FROM EMPLOYEE WHERE EMPLOYEE_ID IN (comma separated list )

I want to run this...
875
Posted By LoneRanger
Thanks all
Thanks all
875
Posted By LoneRanger
Take only lastest file matching the pattern
Hi All ,

I have some fille names in a file which are sorted according to date. for example


file1_123.log 23 Jul 0Kb
file2_123.log 22 Jul 2Kb
file3_123.log 20 Jul 0Kb
file1_456.log ...
1,622
Posted By LoneRanger
Robin , Thanks . I will try your suggestion...
Robin , Thanks .

I will try your suggestion tomorrow and get back to you..
1,622
Posted By LoneRanger
Is this homework/assignment? There are specific...
Is this homework/assignment? There are specific forums for these.
What have you tried so far? No It's not.
What output/errors do you get? I am not getting expected output.
Are the ** shown...
1,622
Posted By LoneRanger
I have this list of files . Now I will have to pick the latest file based on some condition
3679 Jul 21 23:59 belk_rpo_error_**po9324892**_07212014.log
0 Jul 22 23:59 belk_rpo_error_**po9324892**_07222014.log
3679 Jul 23 23:59 belk_rpo_error_**po9324892**_07232014.log
22...
1,476
Posted By LoneRanger
Thanks RudiC .. Sorry for not being clearer...
Thanks RudiC ..
Sorry for not being clearer with my requirement.


3679 Jan 25 23:59 belk_rpo_error_po9324892_01252014.log
0 Jul 01 06:30 belk_rpo_error_po9324267_07012014.log
...
1,476
Posted By LoneRanger
Thanks for replying. I dont have any working...
Thanks for replying. I dont have any working script yet. I am trying to do it. Is it possible to do using find command?

I have already explained exactly what I am looking for.

---------- Post...
1,476
Posted By LoneRanger
yes a better way is all I am asking
yes a better way is all I am asking
1,476
Posted By LoneRanger
Find fields based on date criterion
Hi All ,

I am trying to find some non empty files from a directory based on below conditions :
Files::

SIZE DATE FILE
3679 Jan 25 23:59...
3,411
Posted By LoneRanger
Oh Yes !!! Thanks . I see my erorr :(
Oh Yes !!! Thanks . I see my erorr :(
3,411
Posted By LoneRanger
"There was an error or 0 rows updated" I am...
"There was an error or 0 rows updated" I am getting this . But 3 rows were updated in the sql , so I should have gotten the second output with counts of rows updated (i.e. 3)
3,411
Posted By LoneRanger
Sql command inside shell script runs without giving anything back as outout
#!/bin/sh
# This script returns the number of rows updated from a function

echo "The execution is starting ....."
sqlplus -silent $UP <<EOF
set serveroutput on
set echo off
set pagesize 0...
3,089
Posted By LoneRanger
You can call a function inside a package like...
You can call a function inside a package like this

sqlplus -silent $connectionstring <<EOF
set serveroutput on
set echo off
set feedback off
whenever sqlerror exit 1
...
1,356
Posted By LoneRanger
Thanks very much... This is the code ...
Thanks very much... This is the code

#!/bin/ksh
################################################################################
# Description : Execute RMS Jobs with Error Reporting
# ...
Showing results 1 to 25 of 26

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