Dears,
I would like to count the number of "(" and ")" that occur in a file.
(syntax checking script). I tried to use "grep -c" and this works fine as long as there is only one character (for which I do a search) on a line.
Has anyone an idea how I can count the number of specific characters... (6 Replies)
I have a comma delimited file that roughly has 300 fields. Not all fields are populated.
This file is fed into another system, what I need to do is count the amount of characters in each field and give me an output similiar to this:
1 - 6,2 - 25
The first number is the field and the second... (2 Replies)
I want to list the occurence of particular characters in a line. my file looks like this
a,b,c,d
e,f,g
h,y:e,g,y s
f;g,s,w
and I want to count how many commas are in each line so the file in the end looks like this:
a,b,c,d 3
e,f,g 2
h,y:e,g,y s 3
f;g,s,w ... (2 Replies)
Ok say I wanted to count every Y in a data file.
Then set Y as my delimiter so that I can separate my file by taking all the contents that occur BEFORE the first Y and store them in a variable so that I may use this content later on in my program. Then I could do the same thing with the next Y's... (5 Replies)
I do have a big file in the following format
>A1
ATGCGG
>A2
TCATGC
>A3
-TGCTG
The number of characters will be same under each subheader and only possible characters are A,T,G,C and -
I want to count the number of A's, T's,G's, C's & -'s vertically for all the positions so that I... (5 Replies)
Hi All, here's a question from newbie
I have a data like this, which set of small DNA sequences separated by new line
GAATCCGGAAACAGCAACTTCAAANCA
GTNATTCGGGCCAAACTGTCGAA
TTNGGCAACTGTTAGAGCTCATGCGACA
CCTGCTAAACGAGTTCGAGTTGAANGA
TTNCGGAAGTGGTCGCTGGCACGG
ACNTGCATGTACGGAGTGACGAAACCI... (6 Replies)
Discussion started by: amits22
6 Replies
LEARN ABOUT FREEBSD
hx509_err
hx509 error functions(3) Heimdalx509library hx509 error functions(3)NAME
hx509 error functions -
Functions
void hx509_clear_error_string (hx509_context context)
void hx509_set_error_stringv (hx509_context context, int flags, int code, const char *fmt, va_list ap)
void hx509_set_error_string (hx509_context context, int flags, int code, const char *fmt,...)
char * hx509_get_error_string (hx509_context context, int error_code)
void hx509_free_error_string (char *str)
void hx509_err (hx509_context context, int exit_code, int error_code, const char *fmt,...)
Detailed Description
See the Hx509 error reporting functions for description and examples.
Function Documentation
void hx509_clear_error_string (hx509_context context)
Resets the error strings the hx509 context.
Parameters:
context A hx509 context.
void hx509_err (hx509_context context, int exit_code, int error_code, const char * fmt, ...)
Print error message and fatally exit from error code
Parameters:
context A hx509 context.
exit_code exit() code from process.
error_code Error code for the reason to exit.
fmt format string with the exit message.
... argument to format string.
void hx509_free_error_string (char * str)
Free error string returned by hx509_get_error_string().
Parameters:
str error string to free.
char* hx509_get_error_string (hx509_context context, int error_code)
Get an error string from context associated with error_code.
Parameters:
context A hx509 context.
error_code Get error message for this error code.
Returns:
error string, free with hx509_free_error_string().
void hx509_set_error_string (hx509_context context, int flags, int code, const char * fmt, ...)
See hx509_set_error_stringv().
Parameters:
context A hx509 context.
flags
o HX509_ERROR_APPEND appends the error string to the old messages (code is updated).
code error code related to error message
fmt error message format
... arguments to error message format
void hx509_set_error_stringv (hx509_context context, int flags, int code, const char * fmt, va_list ap)
Add an error message to the hx509 context.
Parameters:
context A hx509 context.
flags
o HX509_ERROR_APPEND appends the error string to the old messages (code is updated).
code error code related to error message
fmt error message format
ap arguments to error message format
Version 1.5.2 11 Jan 2012 hx509 error functions(3)