From this, I need to list file names which is less than 01903(1420SP1.01903) as first half of the file name is constant. Need to compare second half by taking "." as delimeter.
Problem here is having alphanumeric.
If it's alphanumeric then it should compare only number from the string
I tried following which will work only for numbers
how to match an alphanumeric string like the following.
i have to do like the following.
if the input line is
the data is {clock_91b}
i have to replace that with
the string was ("clock_91b")
i tried like
$line =~ s/the data is\s+\{(+)\}/the string was \(\"$1\"\)/
which... (4 Replies)
Hi :)
I am writing a ksh
I have a string of general format
A12B3456CD78
the string is of variable length
the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)
before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Hi there
With shell script I'm trying to split the string into two parts. One is alphanumeric part, the other one is a numeric part.
dummy_postcode_1 = 'SL1'
--> res_alpha = 'SL' and res_numeric = '1'
dummy_postcode_2 = 'S053'
--> res_alpha = 'S' and res_numeric = '053' ... (1 Reply)
Okay I will let users input spaces as well :)
I am having a mental block. I have done a couple of searches but havent found anything that I understand (the likes of :alpha: and awk).
Basically I want to give the user an option to enter some text which will go down as a field within a flat... (3 Replies)
Hi All,
I have a file that I need to be able to find a pattern match on a line, take the number on that line check if its >0.9 or <0.1 and if this is true write the line to output.out file.
An example of 4 lines in my file is:
1. driver.I177.I11.net010 1.48622200477273e-05
2.... (2 Replies)
Hi there,
I want to compare 2nd column which are alphanumeric values from each of the 2 files i.e.,lspv_pre.out and lspv_post.out , if found echo some message.
lspv_pre.out
hdisk0 00c39eaa451144dd rootvg active
hdisk1 00c39eaa45223322 ... (3 Replies)
Hi,
I would like to be able to parse out a substring matching a basic pattern, which is a character followed by 3 or 4 digits (for example S1234 out of a larger string). The main string would just be a filename, like Thisis__the FileName_S1234_ToParse.txt. The filename isn't fixed, but the... (2 Replies)
Hi everyone,
I want help to insert space between digits and letters in a alphanumeric string.
INPUT
TRY234TER
PHY1TYR
EXPECTED OUTPUT
TRY 234 TER
PHY 1 TYR
The lines always begin with the letters and the alphabets will be a three letter combination before and after the number. The... (2 Replies)
Hi,
I want a script of a code that will allow me to generate all possible combinations of alphanumberica characters of length 12 such that each string will contain numbers and either small or capital letters.
For example a string may look like this: 123AB45cd678. (11 Replies)
Discussion started by: faizlo
11 Replies
LEARN ABOUT REDHAT
ldap_compare_ext_s
LDAP_COMPARE(3) Library Functions Manual LDAP_COMPARE(3)NAME
ldap_compare, ldap_compare_s - Perform an LDAP compare operation
SYNOPSIS
#include <ldap.h>
int ldap_compare_s(ld, dn, attr, value)
LDAP *ld;
char *dn, *attr, *value;
int ldap_compare(ld, dn, attr, value)
LDAP *ld;
char *dn, *attr, *value;
DESCRIPTION
The ldap_compare_s() routine 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() routine 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(3).
ERRORS
ldap_compare_s() returns an LDAP error code which can be interpreted by calling one of ldap_perror(3) and friends. ldap_compare() returns
-1 if something went wrong initiating the request. It returns the non-negative message id of the request if things went ok.
BUGS
There is no way to compare binary values, but there should be.
SEE ALSO ldap(3), ldap_error(3)ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan
LDAP 3.3 Release.
OpenLDAP 2.0.27-Release 22 September 1998 LDAP_COMPARE(3)