I have defined a set of global variables at the beginning of my script as below:
#ideal values
now I have a shell script function which returns a value in below format.
These values contain more than 20 lines and they can have only three values in the second column ie SUCCESS, FAILURE & UNAVAILABLE.
Now I want to compare the set of exported values and throw a echo if there is a mismatch between the exported value and current function returned value. The output of function is not in same order as my export.
I feel stupid to write 20 + if conditions to check this. There must be a better way to do it.
I am trying to transpose tables listed in the format into format. Any help would be greatly appreciated.
Input:
test_data_1
1 2 90%
4 3 91%
5 4 90%
6 5 90%
9 6 90%
test_data_2
3 5 92%
5 4 92%
7 3 93%
9 2 92%
1 1 92%
...
Output:... (7 Replies)
Hi ,
I have two tables with same length t1 and t2, I want to cretae a new third table where i put the difference between the elements of t2 and t1,
t3= t1 - t2
t3= t1 - t2
I am new to scripts, any help please? thanks (7 Replies)
I am comparing two table structure in different databases,Put into 2 txt files , when comparing if column sequnce and data type is not matching ,it has to display that info else Table structure is ok.
wrote shell script ,its not working .I am getting "Table structure is not ok" even if both... (1 Reply)
Hi,
I have a table ,containg 2 coloumns and many rows,which is updated everyday.The no.of rows in the table changes everyday.
i have to write the difference between yesterdays tabtle and todays table
to a new file.The row that is new in the todays table need not to be shown.only the change... (2 Replies)
when i do this:
cat HITS
i get the following displayed:
sport.hits:87.114.172.31 Thu Sep 28 22:45:12 GMT 2006
how do i put this information into a bordered table?
so it will output like this:
...........File /... (9 Replies)
Hi,
I have two databases with same tables on different servers.I need to check the data content in each table and if something is missing, should print that.
I have a tool which takes the snapshot the table structure,index so on and compares with the other server tables snapshot.
Now i need... (1 Reply)
Hello all;
I have been really frustrated with finding the correct perl code (and MySql statements) to accomplish what I thought was straight forward...I have tested I don't know how many different codes\suggestions I found on the net without any success...but anyhow let me explain my plight and... (0 Replies)
Hi,
Can anyone help me that, How to see the table fields in Oracle database through shell script(ksh).
I have tried with the following:
sqlplus -s $user/$passwd@$sid << SQL >> session.log
select * from Testtab.sql
I'm not able to see anything..
Thanks (4 Replies)
my queryis :
select distinct m.name, item_count, item from master m join client p on m.name=p.name where item_count = 1 and item > 1;
But how should I update them?
i used update statetment :
Update from client Set item =1 where m.name=p.name and item_count=1 AND item>1
Is this wrong? (1 Reply)
I have 3 file inputs,
file1
20160302|5485368299953|96|510101223440252|USA|5485368299953|6|800|2300|0
20160530|5481379883742|7|510101242850814|USA|5481379883742|5|540|2181|1500
20160513|5481279653404|24|510100412142433|INDIA|5481279653404|3|380|1900|0... (1 Reply)
Discussion started by: radius
1 Replies
LEARN ABOUT OSF1
ldaclose
ldclose(3) Library Functions Manual ldclose(3)NAME
ldclose, ldaclose - close a common object file
SYNOPSIS
#include <stdio.h>
#include <filehdr.h>
#include <syms.h>
#include <ldfcn.h>
int ldclose (ldptr)
LDFILE *ldptr;
int ldaclose (ldptr)
LDFILE *ldptr;
DESCRIPTION ldopen(3) and ldclose provide uniform access to simple object files and object files that are members of archive files. An archive of com-
mon object files can be processed as if it is a series of simple common object files.
If TYPE(ldptr) does not represent an archive file, ldclose closes the file and frees the memory allocated to the LDFILE structure associ-
ated with ldptr. If TYPE(ldptr) is the magic number for an archive file and if archive has more files, ldclose reinitializes OFFSET(ldptr)
to the file address of the next archive member and returns FAILURE. The LDFILE structure is prepared for a later ldopen(3). In all other
cases, ldclose returns SUCCESS.
ldaclose closes the file and frees the memory allocated to the LDFILE structure associated with ldptr regardless of the value of
TYPE(ldptr). ldaclose always returns SUCCESS. The function is often used with ldaopen.
The program must be loaded with the object file access routine library
libmld.a.
RELATED INFORMATION fclose(3), ldopen(3), ldfcn(4). delim off
ldclose(3)