Try introducing an extra column 1, that contains the number of words in column 3, then sorting on that column and then removing the extra column, for example: NR>1 && NF skips the header and the empty line and split($3,F," ") produces the number of words in column 3
Last edited by Scrutinizer; 05-21-2018 at 05:08 PM..
This User Gave Thanks to Scrutinizer For This Post:
Hi,
This was very unusual situation I never came across & we have SUN engineers working on this.
We have Sun Fire V240 Server, 2 1.5-GHz UltraSPARC IIIi CPU, Solaris 9 Installed
During the boot-up it gives following message,
<date> <server name> unix : KEY in LOCKED position ignoring... (5 Replies)
Dear friends
I am new to linux and was trying to split some files userwise in our linux server.
I have a data file of 156 continuous columns named ecscr final.
I want the script to redirect all the lines containing a pattern of 7 digits to separate files. I was using grep to do that,... (2 Replies)
I have a set of .gz files. I need to grep a pattern and need to find out the file in which that pattern occurs. zgrep in not available in my server.Any other options available for searching a pattern without unzipping the .gz files. (2 Replies)
Assume I have a file with a lot of data sets like
123 abc 01
456 def 02
789 ghi
and I only want to grep all that datasets from my file having the pattern '02' at the postion 9-10 to get only
456 def 02
So I could group the datsets into three files according to the position 9-10, one... (9 Replies)
hello I'm doing a unix program and i'm using many file csv.in each csv file the colums are separated by ";" I would like to know the position of a pattern. For example for a line yyyy, bbbb, cccc; ddddd;eeee. I will like for example by finding the position of the pattern "cccc" and the response is... (6 Replies)
I would need a command for finding first 15000 of the file names whose 25th postion is 5 in the current directory alone.
I do have this painful command
find . -name '5*' | head -15000 | cut -c3-
please refine this.
Of course the above command also searches in the sub directories... (3 Replies)
I am trying to find/grep the 5th and 6th position character (TX) of a word in a file. I tried to do
grep "....TX" file
The output gives me everything in the file with TX in it. I only need the output with the TX in the 5th and 6th position of the word. Any idea
Example:
test1 car... (5 Replies)
Hi
I'm new to the forum, so I'd apologize for any error in the format of the post.
I'm trying to find a file content in another one using:
grep -w -f file1 file2
file1
GJA7
TSC
file 2
GJC1 GJA7
TSC1 TSC (11 Replies)
Hi ,
I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.
# diff mir_lex.c.modified mir_lex.c.orig
3209c3209
< if(yy_current_buffer -> yy_is_our_buffer == 0) {
---
>... (5 Replies)
Discussion started by: breezevinay
5 Replies
10. Post Here to Contact Site Administrators and Moderators
In file, we have millions of records each of 1000 in length. And at specific position say 800 there is a space, we need to replace it with Character X if the ID in that row starts with 123.
So far i have used the below which is replacing space at that position to X but its not checking for... (3 Replies)
Discussion started by: Jagmeet Singh
3 Replies
LEARN ABOUT DEBIAN
ldns_key_list_push_key
ldns(3) Library Functions Manual ldns(3)NAME
ldns_key_list_key_count, ldns_key_list_key, ldns_key_rsa_key, ldns_key_dsa_key, ldns_key_algorithm, ldns_key_hmac_key, ldns_key_origttl,
ldns_key_inception, ldns_key_expiration, ldns_key_keytag, ldns_key_pubkey_owner, ldns_key_flags-
SYNOPSIS
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
size_t ldns_key_list_key_count(const ldns_key_list *key_list);
ldns_key* ldns_key_list_key(const ldns_key_list *key, size_t nr);
RSA* ldns_key_rsa_key(const ldns_key *k);
DSA* ldns_key_dsa_key(const ldns_key *k);
ldns_signing_algorithm ldns_key_algorithm(const ldns_key *k);
unsigned char* ldns_key_hmac_key(const ldns_key *k);
uint32_t ldns_key_origttl(const ldns_key *k);
uint32_t ldns_key_inception(const ldns_key *k);
uint32_t ldns_key_expiration(const ldns_key *k);
uint16_t ldns_key_keytag(const ldns_key *k);
ldns_rdf* ldns_key_pubkey_owner(const ldns_key *k);
uint16_t ldns_key_flags(const ldns_key *k);
DESCRIPTION
ldns_key_list_key_count() returns the number of keys in the key list
key_list: the key_list
Returns the numbers of keys in the list
ldns_key_list_key() returns a pointer to the key in the list at the given position
key: the key
nr: the position in the list
Returns the key
ldns_key_rsa_key() returns the (openssl) RSA struct contained in the key
k: the key to look in
Returns the RSA * structure in the key
ldns_key_dsa_key() returns the (openssl) DSA struct contained in the key
ldns_key_algorithm() return the signing alg of the key
k: the key
Returns the algorithm
ldns_key_hmac_key() return the hmac key data
k: the key
Returns the hmac key data
ldns_key_origttl() return the original ttl of the key
k: the key
Returns the original ttl
ldns_key_inception() return the key's inception date
k: the key
Returns the inception date
ldns_key_expiration() return the key's expiration date
k: the key
Returns the experiration date
ldns_key_keytag() return the keytag
k: the key
Returns the keytag
ldns_key_pubkey_owner() return the public key's owner
k: the key
Returns the owner
ldns_key_flags() return the flag of the key
k: the key
Returns the flag
AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.
REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html
COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
ldns_key. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.
30 May 2006 ldns(3)