I have a small query. I have a file containing the following lines
abcd<12></12>fdfgdf<12>sdfgfg<12>
sdfsdf<12></12>ytunfg<12>
hggfhf<12>rtysb<12>zdfgdfg<12>
Now I wish to delete ONLY the last occurance of string <12> from every lines of code. That mease my final output will be like this:... (7 Replies)
I need help to strip out the first two characters of the variable $FileName. Please help.
FileName=`find . -mtime +0 -name '*'`
Contents of variable $FileName:
./SRIZVI4.MCR_IDEAS_REPORT.LAST.052705.075405.csv
I want to strip out "./" and place the contents in another variable. How do I... (3 Replies)
Hi. I want to remove a substring from a string. If I use the "tr" command, it doesn't seem to to what I want it to:
echo './somestring.dat' | tr -d './'
results in
somestringdat
I want it to remove only occurances of the string './', rather than the individual character. The result... (1 Reply)
While writing a shell script i happen to store some value in a string. Lets say the value is 59788.
Now in this script i want to get the value 9788 removing the first charater 5. The original string length usually remains constant.
Is there a single line command to do this or any simple way to... (4 Replies)
I want a user to be able to paste in a string like "01 3F 20 1F" and have the script reformat it to "013F201F" to pass it on to the next step.
I was trying to figure it out with awk but wasnt working well.
Never mind, found answer. did not know about tr :) (7 Replies)
Hi ,
I have a file with the following contents in file test1.txt .
AMY_MTT_240Y001,N60_PG2_10G001,A2H_P3H_10G002,7C7_7D7_NP1,A2E_PV0_10G002,L78_PG1_64S001,A2H_P2M_NP2,LDN_YSN_64S001,WV6_WYV_64... (5 Replies)
I'm writing a UNIX script to interpret text files and search for certain strings to output and need to delete certain lines that contain characters that I would like removed from the file. The rest of the script is already completed and I have it output how I would like, but I cannot seem to get... (2 Replies)
Hello everyone,
I want to remove only prefix ME_ from all the values that are present in the FILEA. Below code I'm using for this.
sed 's/ME\_//g' FILEA > FILEB
Using the above code, all ME_ values are getting removed from the file. But the problem here is I want to remove only Prefix ME_... (4 Replies)
What I need is to remove the text from Location_file.txt from each line matching all entries from Remove_location.txt
Location_file.txt
FlowPrePaid, h3nmg1cm2,Jamaica_MTAImageFileFlowPrePaid,h0nmg1cm1, Flow_BeatTest,FlowRockTest
FlowNewTest,FlowNewTest,h0nmg1cm1
PartiallySubscribed,... (3 Replies)
Discussion started by: ketanraut
3 Replies
LEARN ABOUT FREEBSD
hx509_validate_ctx_set_print
hx509 printing functions(3) Heimdalx509library hx509 printing functions(3)NAME
hx509 printing functions -
Functions
void hx509_print_stdout (void *ctx, const char *fmt, va_list va)
int hx509_oid_sprint (const heim_oid *oid, char **str)
void hx509_oid_print (const heim_oid *oid, hx509_vprint_func func, void *ctx)
void hx509_bitstring_print (const heim_bit_string *b, hx509_vprint_func func, void *ctx)
int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char **s)
int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx *ctx)
void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void *c)
void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags)
void hx509_validate_ctx_free (hx509_validate_ctx ctx)
int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert)
Detailed DescriptionFunction Documentation
void hx509_bitstring_print (const heim_bit_string * b, hx509_vprint_func func, void * ctx)
Print a bitstring using a hx509_vprint_func function. To print to stdout use hx509_print_stdout().
Parameters:
b bit string to print.
func hx509_vprint_func to print with.
ctx context variable to hx509_vprint_func function.
int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char ** s)
Print certificate usage for a certificate to a string.
Parameters:
context A hx509 context.
c a certificate print the keyusage for.
s the return string with the keysage printed in to, free with hx509_xfree().
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_oid_print (const heim_oid * oid, hx509_vprint_func func, void * ctx)
Print a oid using a hx509_vprint_func function. To print to stdout use hx509_print_stdout().
Parameters:
oid oid to print
func hx509_vprint_func to print with.
ctx context variable to hx509_vprint_func function.
int hx509_oid_sprint (const heim_oid * oid, char ** str)
Print a oid to a string.
Parameters:
oid oid to print
str allocated string, free with hx509_xfree().
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_print_stdout (void * ctx, const char * fmt, va_list va)
Helper function to print on stdout for:
o hx509_oid_print(),
o hx509_bitstring_print(),
o hx509_validate_ctx_set_print().
Parameters:
ctx the context to the print function. If the ctx is NULL, stdout is used.
fmt the printing format.
va the argumet list.
int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert)
Validate/Print the status of the certificate.
Parameters:
context A hx509 context.
ctx A hx509 validation context.
cert the cerificate to validate/print.
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags)
Add flags to control the behaivor of the hx509_validate_cert() function.
Parameters:
ctx A hx509 validation context.
flags flags to add to the validation context.
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_validate_ctx_free (hx509_validate_ctx ctx)
Free an hx509 validate context.
Parameters:
ctx the hx509 validate context to free.
int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx * ctx)
Allocate a hx509 validation/printing context.
Parameters:
context A hx509 context.
ctx a new allocated hx509 validation context, free with hx509_validate_ctx_free().
Returns:
An hx509 error code, see hx509_get_error_string().
void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void * c)
Set the printing functions for the validation context.
Parameters:
ctx a hx509 valication context.
func the printing function to usea.
c the context variable to the printing function.
Returns:
An hx509 error code, see hx509_get_error_string().
Version 1.5.2 11 Jan 2012 hx509 printing functions(3)