11-19-2012
Thank you!
Both methods seem to work for what I need!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I need to count the number of occurences of the character " in a file that contains huge number of records.
What command could I use?
Please specify in detail since I am new :|
Thanks much. (3 Replies)
Discussion started by: GMMike
3 Replies
2. Shell Programming and Scripting
Hi,
I've been trying to create a perl file to run something very specific. But I'm not getting any success. I'm not very good with hashing.
I have a file with two columns (tab separated) (already sorted)
99890 +
100281 +
104919 -
109672 +
113428 -
114501 +
115357 +
115598 ... (7 Replies)
Discussion started by: labrazil
7 Replies
3. Shell Programming and Scripting
Hi All,
Is it possible to count number of occurrences of a pattern in a single record using awk??
for example:
a line like this:
abrsjdfhafa
I want to count the number of a character occurrences. but still use the default RS, I don't want to set RS to single character. (1 Reply)
Discussion started by: ghoda2_10
1 Replies
4. Shell Programming and Scripting
Hi,
I need a shell script which can provide details from error logs like this
Aug 23 21:19:41 red mountd: authenticated mount request from bl0110.bang.m
pc.local:651 for /disk1/jobs (/disk1)
Aug 23 08:49:52 red dhcpd: DHCPDISCOVER from 00:25:90:2b:cd:7c via eth0: unknown client
Aug 24... (2 Replies)
Discussion started by: ratheeshp
2 Replies
5. Shell Programming and Scripting
Hey Unix gurus,
I would like to count the number occurrences of all the words (regardless of case) across multiple files, preferably outputting them in descending order of occurrence. This is well beyond my paltry shell scripting ability.
Researching, I can find many scripts/commands that... (4 Replies)
Discussion started by: twjolson
4 Replies
6. Shell Programming and Scripting
Hi,
I need help to count the number of occurrences in $3 of file1.txt. I only know how to count by checking one by one and the code is like this:
awk '$3 ~ /aku hanya poyo/ {++c} END {print c}' FS="\t" file1.txt
But this is not wise to do as i have hundreds of different occurrences in that... (10 Replies)
Discussion started by: redse171
10 Replies
7. Shell Programming and Scripting
Hello,
I have a file like following:
ALB_13554 1 1 1
ALB_13554 1 2 1
ALB_18544 2 0 2
ALB_18544 1 0 1
This is a sample of my file, my real file has 441845 number of fields. What I want to do is to calculate the number of 1 and 2 in each column using AWK, so, the output file looks like... (5 Replies)
Discussion started by: Homa
5 Replies
8. UNIX for Dummies Questions & Answers
Hi all, I have to do a script bash (for university) that counts all word occurrences in a specific web page.
anyone can help me?. Thanks :) (1 Reply)
Discussion started by: piacentero
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have two text files (1.txt and 2.txt).
2.txt contains two columns which are extracted from 1.txt using a simple if(condition) print.
I want to:
- count how many times the values contained in 2.txt appear in 1.txt
-if they appear just one time, I have to delete the entire row in... (5 Replies)
Discussion started by: Pintug
5 Replies
10. Shell Programming and Scripting
Hi all,
I have a quick question:
I have a 4 column tab-separated file.
I want to count the number of times each unique value in column 2 appears and add that number in a 5th column.
I have the following input file:
waterline-n below-sheath-v 14.8097 A
dock-n below-sheath-v ... (4 Replies)
Discussion started by: owwow14
4 Replies
LEARN ABOUT OPENDARWIN
ssl_comp_add_compression_method
SSL_COMP_add_compression_method(3) OpenSSL SSL_COMP_add_compression_method(3)
NAME
SSL_COMP_add_compression_method - handle SSL/TLS integrated compression methods
SYNOPSIS
#include <openssl/ssl.h>
int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);
DESCRIPTION
SSL_COMP_add_compression_method() adds the compression method cm with the identifier id to the list of available compression methods. This
list is globally maintained for all SSL operations within this application. It cannot be set for specific SSL_CTX or SSL objects.
NOTES
The TLS standard (or SSLv3) allows the integration of compression methods into the communication. The TLS RFC does however not specify com-
pression methods or their corresponding identifiers, so there is currently no compatible way to integrate compression with unknown peers.
It is therefore currently not recommended to integrate compression into applications. Applications for non-public use may agree on certain
compression methods. Using different compression methods with the same identifier will lead to connection failure.
An OpenSSL client speaking a protocol that allows compression (SSLv3, TLSv1) will unconditionally send the list of all compression methods
enabled with SSL_COMP_add_compression_method() to the server during the handshake. Unlike the mechanisms to set a cipher list, there is no
method available to restrict the list of compression method on a per connection basis.
An OpenSSL server will match the identifiers listed by a client against its own compression methods and will unconditionally activate com-
pression when a matching identifier is found. There is no way to restrict the list of compression methods supported on a per connection
basis.
The OpenSSL library has the compression methods COMP_rle() and (when especially enabled during compilation) COMP_zlib() available.
WARNINGS
Once the identities of the compression methods for the TLS protocol have been standardized, the compression API will most likely be
changed. Using it in the current state is not recommended.
RETURN VALUES
SSL_COMP_add_compression_method() may return the following values:
0 The operation succeeded.
1 The operation failed. Check the error queue to find out the reason.
SEE ALSO
ssl(3)
0.9.7d 2004-05-17 SSL_COMP_add_compression_method(3)