Search Results

Search: Posts Made By: arun.ijhs.klm
3,926
Posted By arun.ijhs.klm
Requesting more information
Can you please give some example. It is difficult to understand the problem you are facing from current explanation.

Thanks
2,207
Posted By arun.ijhs.klm
Best approach is to create a C shell wrapper...
Best approach is to create a C shell wrapper script.

Wrapper should
1. Source the environment file
2. Invoke the Korn shell script.

Hope this helps...
2,386
Posted By arun.ijhs.klm
@Scrutinizer: Good compact code. Please...
@Scrutinizer: Good compact code.

Please find two observations below.

Issue 1:
Let us say there are two directories in the destination with the below names.
TEST
RETEST

And two files in...
2,386
Posted By arun.ijhs.klm
Try the given code
Please make sure to test this before using it in live environments.


#!/bin/ksh
SRCDIR=./src
DSTDIR=./dest
for matchstr in `ls -lrt ${DSTDIR} | grep ^d | awk '{ print length($9) "," $9; }' |...
7,831
Posted By arun.ijhs.klm
Change code as below
Change
printf("%d, %d, %d, %d, %d, %d, %f\n", a, c, d, cnt, minh, maxh, avgh);
to
printf("%d, %d, %d, %d, %d, %d, %5.2f\n", a, c, d, cnt, minh, maxh, avgh);
2,386
Posted By arun.ijhs.klm
Try this
Please test this before using in the real world.


#!/bin/ksh
DIR1=dir1
DIR2=dir2
MATCHSTR1=str1
MATCHSTR2=str2
#MATCHST1 and MATCHSTR2 should be exclusive of each other.
#meaning when...
1,246
Posted By arun.ijhs.klm
Try using sed
Search man pages for sed.


newvar=`echo ${var} | sed 's/\_/\\n/g'`
3,524
Posted By arun.ijhs.klm
I think find will automatically traverse through...
I think find will automatically traverse through the sub-directories and gzip the files as necessary.
1,421
Posted By arun.ijhs.klm
APPL=`grep "$Application" ldapapps |awk '{print...
APPL=`grep "$Application" ldapapps |awk '{print $1}'`
echo $APPL

Is ldapapps a variable. If it is then it should be represented by ${ldapapps}.
7,831
Posted By arun.ijhs.klm
Please change the code as below
Replace
print a "," c "," d "," cnt "," minh "," maxh "," avgh;
with
printf("%d, %d, %d, %d, %d, %d, %f\n", a, c, d, cnt, minh, maxh, avgh);
7,831
Posted By arun.ijhs.klm
Please try the below code
#!/bin/ksh
#cat inpfile | cut -d"," -f1,3,4 -s | uniq
INPFIL=./inpfile
print "A , C, D,Diff_count,min(H column),max(H column),AVG(H column)"
for ind in `cat ${INPFIL} | cut -d"," -f1,3,4 -s |...
10,463
Posted By arun.ijhs.klm
Can you give the whole content of the UPDate.sql
Can you give the whole content of the UPDate.sql
10,463
Posted By arun.ijhs.klm
Run PROC directly to check
Can you please execute the PL/SQL proc in some Oracle DEV Tool like Toad or SQL tools and check the output.

DECLARE
CNT NUMBER(5);
DROPCNT NUMBER(5);
ERRORCNT NUMBER(5);
BEGIN
SELECT...
10,463
Posted By arun.ijhs.klm
Try this...
There were a couple of syntax errors in the code I gave before. The below code has those misses marked in red.

Can you also check whether the file is created?


nawk '{{print $1,$2,$3}}' ...
10,463
Posted By arun.ijhs.klm
Please try the below code
nawk '{{print $1,$2,$3}}' ./$DirectoryName/AuditGroupTableTableData_$TimeStamp.txt | while read a b c
do
echo $a
echo $b
echo $c
ret=`sqlplus -s $db_user/$db_pwd@$db_sid $a $b $c <<EOF >...
Showing results 1 to 15 of 15

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