Sponsored Content
Top Forums Shell Programming and Scripting Reformatting single column text file starting new line when finding particular string Post 302566946 by kieranfoley on Friday 21st of October 2011 01:39:56 PM
Old 10-21-2011
Thanks again but that code is only printing the IP addresses.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding a certain string on each line in a file

Hi, I need a script to get every line from a file where there are less then 17 ; on a line. Thank's (5 Replies)
Discussion started by: VODAFUN
5 Replies

2. Shell Programming and Scripting

Finding a string in a text file and posting part of the line

What would be the most succinct way of doing this (preferably in 1 line, maybe 2): searching the first 10 characters of every line in a text file for a specific string, and if it was found, print out characters 11-20 of the line on which the string was found. In this case, it's known that there... (13 Replies)
Discussion started by: busdude
13 Replies

3. Shell Programming and Scripting

Finding the last column value from a text file

Hi, I need to find out the last column value from a text file which is delimited by a tab. The issue here is the last column# for each record can be different i.,e, 1st record can have the last column as 15 and the second record can have the last column as "17". I have to search a string... (3 Replies)
Discussion started by: naveen_sangam
3 Replies

4. Shell Programming and Scripting

Finding the second last column value from a text file

Can any one tell me how to get the second last column value from the text file, which has different record size for each record. I know how to get the last column using awk and print statements, but I am unable to get the second last column value from the file. (4 Replies)
Discussion started by: naveen_sangam
4 Replies

5. Shell Programming and Scripting

replace (sed?) a single line/string in file with multiple lines (string) from another file??

Can someone tell me how I can do this? e.g: Say file1.txt contains: today is monday the 22 of NOVEMBER 2010 and file2.txt contains: the 11th month of How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies

6. Shell Programming and Scripting

Help for reformatting text file and creating new format

Hi all, I have an input file like 1,date,company,, 1,date,comapny,, 2,000,,,567,ACT,00,,,,KKG,M1,D45,,67J,+4500000000 2,000,,,567,ACT,00,,,,KKG,M6,D49,,56J,+6000 2,000,,,567,ACT,00,,7,,KKG,M3,D58,,68h,-70000 2,000,,,567,ACT,00,,,,KKG,M9,D95,,34m,0.00 3,total what i require is 1.I... (2 Replies)
Discussion started by: selvankj
2 Replies

7. UNIX for Dummies Questions & Answers

Sort text file starting at column X

Hello everyone! As the heading reads, I would like to sort the lines of a text file, starting at a specific column (i.e. skip the first X characters of each line). What I’m actually trying to sort is the md5 sums file of a directory. Every time I copy a new file to that directory, I perform... (3 Replies)
Discussion started by: iznogoud
3 Replies

8. Shell Programming and Scripting

Multiple lines in a single column to be merged as a single line for a record

Hi, I have a requirement with, No~Dt~Notes 1~2011/08/1~"aaa bbb ccc ddd eee fff ggg hhh" Single column alone got splitted into multiple lines. I require the output as No~Dt~Notes 1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh" mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies

9. Shell Programming and Scripting

search a string in a particular column of file and return the line number of the line

Hi All, Can you please guide me to search a string in a particular column of file and return the line number of the line where it was found using awk. As an example : abc.txt 7000,john,2,1,0,1,6 7001,elen,2,2,0,1,7 7002,sami,2,3,0,1,6 7003,mike,1,4,0,2,1 8001,nike,1,5,0,1,8... (3 Replies)
Discussion started by: arunshankar.c
3 Replies

10. UNIX for Dummies Questions & Answers

Append a line to single column text file

I would like to add a line to the end of a single column text file. How do I go about doing that? Input: BEGIN 1 2 3 Output: BEGIN 1 2 3 END Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
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 Description Function 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)
All times are GMT -4. The time now is 03:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy