hi,
given a file
i need to get the first line and secodn line
and count each of the line whether the length of first line and second line is the same
i don;t know how to get the length of the line...seems like use 'wc' cannot do it...
please advice (1 Reply)
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Hi All,
Please let me know how to get the count of a particular word in a file. Example. I am looking for count of word 'result' in a file abc.xml.
Thanks,
Shankar (10 Replies)
Hi all, I am trying to write a command that can help me count the number of lines in the /etc/passwd file ending in bash.
I have read through other threads but am yet to find one indicating how to locate a specifc word at the end of a line. I know i will need to use the wc command but when i... (8 Replies)
Script that lists all words used in one or more files and displays their count (pattern /\W+/ to split the lines of the input file into words can b used)..
It should display list in format word:count...gets Filename as an cmd line argument!
eg: $perl test doc (where doc is d file we are going to... (4 Replies)
Hi, been searching Google for like an hour and I doubt I got the right keywords so might as well ask here.
What I need:
Before:
Article1.txt 564
Article2.txt 799
Article3.txt 349
Article4.txt 452
* Separate files over 400 wordcount *
After:
Article1.txt 564... (3 Replies)
Dear all,
I have numerous dat files (1.dat, 2.dat...) containing 500 numeric values each. I would like to count them, based on their range and obtain a histogram or a counter.
INPUT:
1.dat
1.3
2.16
0.34
......
2.dat
1.54
0.94
3.13
.....
... (3 Replies)
I have a file which has users having different values against them in second column.
I want to set a range and get the count of users in that range.
Suppose :-
a 4
b 19
c 27
d 87
e 123
And I define the range like 1-20 , 20 -50 and so on..... Please assume the... (1 Reply)
I am trying to figure out to find word count of each word from my file
sample file
hi how are you
hi are you ok
sample out put
hi 1
how 1
are 1
you 1
hi 1
are 1
you 1
ok 1
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
4 Replies
LEARN ABOUT OPENSOLARIS
err_print_errors_fp
ERR_print_errors(3openssl) OpenSSL ERR_print_errors(3openssl)NAME
ERR_print_errors, ERR_print_errors_fp - print error messages
SYNOPSIS
#include <openssl/err.h>
void ERR_print_errors(BIO *bp);
void ERR_print_errors_fp(FILE *fp);
DESCRIPTION
ERR_print_errors() is a convenience function that prints the error strings for all errors that OpenSSL has recorded to bp, thus emptying
the error queue.
ERR_print_errors_fp() is the same, except that the output goes to a FILE.
The error strings will have the following format:
[pid]:error:[error code]:[library name]:[function name]:[reason string]:[file name]:[line]:[optional text message]
error code is an 8 digit hexadecimal number. library name, function name and reason string are ASCII text, as is optional text message if
one was set for the respective error code.
If there is no text string registered for the given error code, the error string will contain the numeric code.
RETURN VALUES
ERR_print_errors() and ERR_print_errors_fp() return no values.
SEE ALSO err(3), ERR_error_string(3), ERR_get_error(3), ERR_load_crypto_strings(3), SSL_load_error_strings(3)HISTORY
ERR_print_errors() and ERR_print_errors_fp() are available in all versions of SSLeay and OpenSSL.
OpenSSL-0.9.8 Oct 11 2005 ERR_print_errors(3openssl)