06-11-2016
Thank you very much.
How does each
$5 with a
$7 greater than 20 get distinguished and counted from a
$5 with a
$7 less than 20. The code works great I am just trying to learn. Thank you
.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I am trying to zgrep / grep list of files so that it displays only the matching filename:line number and does not display the whole line, like:
(echo "1.txt";echo "2.txt") | xargs zgrep -no STRING
If I use -o option, it displays the matching STRING and if not used, displays the... (3 Replies)
Discussion started by: vvaidyan
3 Replies
2. Shell Programming and Scripting
I've created an awk script that handles a varying number of search strings handed to it as command line parameters ($1 $2 etc). There may be 1, or 2 or 3 or more. A simplified version of the script is:
awk -v TYP="$1 $2 $3 $4 $5 $6" '
BEGIN {
CTYP = split (TYP,TYPP," ")
}
... (2 Replies)
Discussion started by: CarlosNC
2 Replies
3. Shell Programming and Scripting
Hello,
I am newbie in awk. I have just started learning it.
1) I have input file which looks like:
{4812 4009 1602 2756 306} {4814 4010 1603 2757 309} {8116 9362 10779 }
{10779 10121 9193 10963 10908} {1602 2756 306 957 1025} {1603 2757 307}
and so on.....
2) In output:
a)... (10 Replies)
Discussion started by: kajolo
10 Replies
4. Shell Programming and Scripting
Does awk have a syntax for a range of numbers or is this the best way?
if ($1 >= 0 && $1 <= 9 ) (7 Replies)
Discussion started by: Arsenalman
7 Replies
5. Shell Programming and Scripting
Hi to everyone,
Please some help over here.
Hi have array a with 6 elements and array b with 3 elements as shown inside BEGIN{} statement.
I need help to get the correct sintax (the part in red) to compare if string from array b is in array a and print the number
related for each match.... (3 Replies)
Discussion started by: Ophiuchus
3 Replies
6. Shell Programming and Scripting
I need a Shell script which take two inputs which are
1) main directory where it has to search and
2) pattern to search within main directory all files (.c and .h files)
It has to print number of pattern found in main directory & each sub directory.
main dir --> Total pattern found = 5
|... (3 Replies)
Discussion started by: vivignesh
3 Replies
7. Shell Programming and Scripting
Hi,
I wasn't quite sure how to title this one! Here goes:
I have some already partially parsed log files, which I now need to extract info from. Because of the way they are originally and the fact they have been partially processed already, I can't make any assumptions on the number of... (8 Replies)
Discussion started by: chrissycc
8 Replies
8. Shell Programming and Scripting
I can not figure out why there are 56,548 unique entries in test.bed. However, perl and awk see only 56,543 and that # is what my analysis see's as well. What happened to the 5 missing? Thank you :).
The file is attached as well.
cmccabe@DTV-A5211QLM:~/Desktop/NGS/bed/bedtools$wc -l... (2 Replies)
Discussion started by: cmccabe
2 Replies
9. UNIX for Dummies Questions & Answers
So I was given a file,and I want to count how many occurrences happen with a specific string. I have two, that could have up to 3 different outcomes.
Now my trouble I believe starts with this string, "news.cais.net"
but why?
as of now my output is this...
accepted rejected ... (3 Replies)
Discussion started by: squidGreen
3 Replies
10. UNIX for Beginners Questions & Answers
Hello all, I can get close to what I am looking for but cannot seem to hit it exactly and was wondering if I could get your help.
I have the following sample from textfile with many thousands of lines: File 1
PS001,001 HLK
PS002,004 L<G
PS004,002 XNN
PS004,006 BVX
PS004,006 ZBX=... (7 Replies)
Discussion started by: jvoot
7 Replies
LEARN ABOUT MOJAVE
ldap_rename
LDAP_RENAME(3) Library Functions Manual LDAP_RENAME(3)
NAME
ldap_rename, ldap_rename_s - Renames the specified entry.
LIBRARY
OpenLDAP LDAP (libldap, -lldap)
SYNOPSIS
#include <ldap.h>
int ldap_rename( ld, dn, newrdn, newparent, deleteoldrdn, sctrls[], cctrls[], msgidp );
LDAP *ld;
const char *dn, *newrdn, *newparent;
int deleteoldrdn;
LDAPControl *sctrls[], *cctrls[];
int *msgidp);
int ldap_rename_s( ld, dn, newrdn, newparent, deleteoldrdn, sctrls[], cctrls[] );
LDAP *ld;
const char *dn, *newrdn, *newparent;
int deleteoldrdn;
LDAPControl *sctrls[], *cctrls[];
DESCRIPTION
These routines are used to perform a LDAP rename operation. The function changes the leaf component of an entry's distinguished name and
optionally moves the entry to a new parent container. The ldap_rename_s performs a rename operation synchronously. The method takes dn,
which points to the distinguished name of the entry whose attribute is being compared, newparent,the distinguished name of the entry's new
parent. If this parameter is NULL, only the RDN is changed. The root DN is specified by passing a zero length string, "". deleteoldrdn
specifies whether the old RDN should be retained or deleted. Zero indicates that the old RDN should be retained. If you choose this
option, the attribute will contain both names (the old and the new). Non-zero indicates that the old RDN should be deleted. serverctrls
points to an array of LDAPControl structures that list the client controls to use with this extended operation. Use NULL to specify no
client controls. clientctrls points to an array of LDAPControl structures that list the client controls to use with the search.
ldap_rename works just like ldap_rename_s, but the operation is asynchronous. It returns the message id of the request it initiated. The
result of this operation can be obtained by calling ldap_result(3).
ERRORS
ldap_rename() returns -1 in case of error initiating the request, and will set the ld_errno field in the ld parameter to indicate the
error. ldap_rename_s() returns the LDAP error code resulting from the rename operation.
SEE ALSO
ldap(3), ldap_modify(3)
ACKNOWLEDGEMENTS
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from Uni-
versity of Michigan LDAP 3.3 Release.
OpenLDAP 2.4.28 2011/11/24 LDAP_RENAME(3)