I don't have any solution..My question is how could I match the each word of user input "THIS is user input" with the file B that stores the name of each user in below format.If THIS word does not match with any name of the file B it will check next word which is "is" in user comment and will compare each word one by one if not matches than exit and print any thing.What would be the code?
Hello,
There are directories named by "yyyyMMdd" format. The one directory name is given and I should find & print that directory & its previous days directory names if exist.
For example:
20080401
20080402
20080403
20080404
...
The given date: 20080403
The result:
20080403... (4 Replies)
Need help !
how do i compare 2 files and if there is a difference, output a massage in a pop up window?
the script meant to run using crontab. (2 Replies)
Hi there all,
I got a long list of printers installed and a longer list of printers in my hosts file.
In the hosts file I got a even longer list of printers
in the hosts file I got the IP adress of all printers next to the printer name.
How can I get a script working to get the printers... (0 Replies)
select colname from syscat.columns where tabname='t' and tableschema='s'
output is columnnames which are in part of primary key
PK1
PK2
PK3
PK4
PK5
select colname from syscat.columns where tabname ='t1' and tableschema='s'
output is columnnames which are in part of primary key for... (3 Replies)
Hi Friends,
Need Help. I have file1.txt as
File1.txt
|123|A|7267|Hyder|Cross|Sell|7801
|995|A|7051|2008|Lunar|New|Year|Promotion|7801
|996|A|7022|Q108|Targ|Prospect|&|SSCC|Savings|Promo|7801
|997|A|7182|Q1|Feb-Apr|08|Credit|ITA|PA|SBA|Campaign|7801
File2.txt... (7 Replies)
Hi friends...I have 2 files, file1.txt and reference.txt
I could able to find difference using diff and following command
awk 'NR == FNR { A=1; next } !A' reference.txt file1.txt
above command listing data which is not in reference.txt
12.12 87
11.95 88
11.83 89
12.55 84... (12 Replies)
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
HI,
I have 2 text files. file1 and file2.
file1.txt (There are no duplicates in this file)
1234
3232
4343
3435
6564
6767
1213
file2.txt
1234,wq,wewe,qwqw
1234,as,dfdf,dfdf
4343,asas,sdds,dsds
6767,asas,fdfd,fdffd
I need to search each number in file1.txt in file2.txt's 1st... (6 Replies)
Hi,
i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues.
Src file(jjj.txt)
-------... (8 Replies)
Discussion started by: raju2016
8 Replies
LEARN ABOUT SUNOS
ldap_compare_ext_s
ldap_compare(3LDAP) LDAP Library Functions ldap_compare(3LDAP)NAME
ldap_compare, ldap_compare_s, ldap_compare_ext, ldap_compare_ext_s - LDAP compare operation
SYNOPSIS
cc[ flag... ] file... -lldap[ library... ]
#include <lber.h>
#include <ldap.h>
int ldap_compare(LDAP *ld, char *dn, char *attr, char *value);
int ldap_compare_s(LDAP *ld, char *dn, char *attr, char *value);
int ldap_compare_ext(LDAP *ld, char *dn, char *attr, struct berval *bvalue, LDAPControl **serverctrls, LDAPControl **clientctrls, int
*msgidp);
int ldap_compare_ext_s(LDAP *ld, char *dn, char *attr, struct berval *bvalue, LDAPControl **serverctrls, LDAPControl **clientctrls);
DESCRIPTION
The ldap_compare_s() function is used to perform an LDAP compare operation synchronously. It takes dn, the DN of the entry upon which to
perform the compare, and attr and value, the attribute type and value to compare to those found in the entry. It returns an LDAP error
code, which will be LDAP_COMPARE_TRUE if the entry contains the attribute value and LDAP_COMPARE_FALSE if it does not. Otherwise, some
error code is returned.
The ldap_compare() function is used to perform an LDAP compare operation asynchronously. It takes the same parameters as ldap_compare_s(),
but returns the message id of the request it initiated. The result of the compare can be obtained by a subsequent call to
ldap_result(3LDAP).
The ldap_compare_ext() function initiates an asynchronous compare operation and returns LDAP_SUCCESS if the request was successfully sent
to the server, or else it returns a LDAP error code if not (see ldap_error(3LDAP). If successful, ldap_compare_ext() places the message
id of the request in *msgidp. A subsequent call to ldap_result(), can be used to obtain the result of the add request.
The ldap_compare_ext_s() function initiates a synchronous compare operation and as such returns the result of the operation itself.
ERRORS
ldap_compare_s() returns an LDAP error code which can be interpreted by calling one of ldap_perror(3LDAP) and friends. ldap_compare()
returns -1 if something went wrong initiating the request. It returns the non-negative message id of the request if it was successful.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsl (32-bit) |
| |SUNWcslx (64-bit) |
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO ldap(3LDAP), ldap_error(3LDAP), attributes(5)BUGS
There is no way to compare binary values using ldap_compare().
SunOS 5.10 27 Jan 2002 ldap_compare(3LDAP)