Hi all,
I am search a string from a file using following command, I want to pick the message ( I.e print $5) from the lookup file if and only if both $hostname and $instancename match.
Message=`cat $lookup_tbl| awk '/'$category'/ {if ('$hostname' == '$2' || '$instancename' == '$3') print $5}'`... (2 Replies)
Hi All,
I want to search all the ksh scripts that has following details.
1. Search for "exit 0"
2. Search for "sqlldr" or sqlplus"
3. In the above files i want to search for all the script that has no "case" in it.
Please advice.
Thanks,
Deep (2 Replies)
Hi,
I need to find if there is any error in the last few lines of the log file and send a mail accordingly.For example,
Following errors can be logged in the log file.
ERR_1="DB Connection not established"
ERR_2="Server Unloading"
I need to find if these errors are found in the log file and... (3 Replies)
Hi,
I need to search for some strings in specific positions in a file.
If the strings: "foo1", "foo2" or "foo3" is on position 266 or position 288 in a file i want the whole line printed.
Any idea how to do it? (5 Replies)
I tried awk for this, but failed <or my code is not correct? I dont know>. Can anyone help me on this?
---------- Post updated at 08:34 PM ---------- Previous update was at 08:29 PM ----------
my working file looks like this:
<empty>
<empty>
<empty>
NAME :ABC AGE :15
GENDER... (6 Replies)
Hi
I want to search multiple strings in a file . But the search should start with "From" Keyword and end with before "Where" keyword.
Please suggest me.
Thanks (2 Replies)
I have a list of files all over a file system e.g.
/home/1/foo/bar.x
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
Hi,
Whether we can search multiple strings using or in grep -F
In Generally,
grep -F "string1" "filename.txt"
How to search for multiple string using grep -F as we using grep
grep "string1\|string2" "filename.txt"
Regards,
Nanthagopal A (10 Replies)
Hi,
I need someone's help in writing correct perl code.
I implemented following code for "multiple search strings replaced with single string".
=========================================================
#!/usr/bin/perl
my $searchStr = 'register_inst\.write_t\(' |... (2 Replies)
i search between two strings viz <app-deployment> & </app-deployment> and save the contents in a new file using the code snippet below.
sed -n "/<app-deployment/,/<\/app-deployment>/p" deploy.tmp >found1.tmpBut if the search string apprears more than once in the file then how can i store the... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT FREEBSD
hx509_set_error_string
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)