Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Need to convert bytearray into text2pcap format Post 303036582 by RudiC on Wednesday 3rd of July 2019 11:23:59 AM
Old 07-03-2019
Those 0000 and 0010 are hexadecimals, and the difference is 16. That's why I added NF which is the count of the 16 line elements. The scriptwould work with 14, 15, or 17 element lines as well.


Call it counter or pointer, it's an indicator of the position in file. A (typed) pointer in C is pointing to the memory location of a structure (type). Yes, there are similarities.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

convert mmddyy date format to ccyyddd format??

hi, for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format. i checked the datecalc and other scripts but couldnt modify them to cater to my need:(... The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Discussion started by: Bhups
2 Replies

2. UNIX for Advanced & Expert Users

Convert UTF8 Format file to ANSI format

:) Hi i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error Function i used it as $ iconv -f UTF8 -t ANSI filename Error iam getting is NOT Supported UTF8 to ANSI please some help me out on this.........Let me... (1 Reply)
Discussion started by: rajreddy
1 Replies

3. UNIX for Dummies Questions & Answers

Convert UTF8 Format file to ANSI format

:confused: Hi i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error Function i used it as $ iconv -f UTF8 -t ANSI filename Error iam getting is NOT Supported UTF8 to ANSI please some help me out on... (9 Replies)
Discussion started by: rajreddy
9 Replies

4. UNIX for Dummies Questions & Answers

To convert multi format file to a readable ascii format

Hi I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source . Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies

5. Programming

How to convert byteArray variables to HexaString variables for Linux?

Hello everybody, I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
Discussion started by: ritesh_163
2 Replies

6. Shell Programming and Scripting

Convert Epoch time format to normal date time format in the same file

I have a file named "suspected" with series of line like these : {'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''} {'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies

7. Shell Programming and Scripting

convert date format to mysql date format in log file

I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column. I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this? Sample input 02/27/09,23:52:31 02/27/09,23:52:52... (3 Replies)
Discussion started by: hazno
3 Replies

8. UNIX for Dummies Questions & Answers

Convert UNIX file format to PC format

Hi All, Is there any way to convert a file which is in UNIX format to a PC format.... Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (1 Reply)
Discussion started by: Samtel
1 Replies

9. Shell Programming and Scripting

Convert UNIX file format to PC format

Hi All, Is there any way to convert a file which is in UNIX format to a PC format.... Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (2 Replies)
Discussion started by: Samtel
2 Replies

10. Shell Programming and Scripting

perl module to convert xlsx format to xls format

Hi Folks, I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx. I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies
ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_rdf2buffer_str_a, ldns_rdf2buffer_str_aaaa, ldns_rdf2buffer_str_str, ldns_rdf2buffer_str_b64, ldns_rdf2buffer_str_hex, ldns_rdf2buf- fer_str_type, ldns_rdf2buffer_str_class, ldns_rdf2buffer_str_alg, ldns_rdf2buffer_str_loc, ldns_rdf2buffer_str_unknown, ldns_rdf2buf- fer_str_nsap, ldns_rdf2buffer_str_wks, ldns_rdf2buffer_str_nsec, ldns_rdf2buffer_str_period, ldns_rdf2buffer_str_tsigtime, ldns_rdf2buf- fer_str_apl, ldns_rdf2buffer_str_int16_data, ldns_rdf2buffer_str_int16, ldns_rdf2buffer_str_ipseckey SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_status ldns_rdf2buffer_str_a(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_aaaa(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_str(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_b64(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_hex(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_type(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_class(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_alg(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_loc(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_unknown(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_nsap(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_wks(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_nsec(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_period(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_tsigtime(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_apl(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_int16_data(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_int16(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_ipseckey(ldns_buffer *output, const ldns_rdf *rdf); DESCRIPTION
ldns_rdf2buffer_str_a() Converts an LDNS_RDF_TYPE_A rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_aaaa() Converts an LDNS_RDF_TYPE_AAAA rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_str() Converts an LDNS_RDF_TYPE_STR rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_b64() Converts an LDNS_RDF_TYPE_B64 rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_hex() Converts an LDNS_RDF_TYPE_HEX rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_type() Converts an LDNS_RDF_TYPE_TYPE rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_class() Converts an LDNS_RDF_TYPE_CLASS rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_alg() Converts an LDNS_RDF_TYPE_ALG rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_loc() Converts an LDNS_RDF_TYPE_LOC rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_unknown() Converts an LDNS_RDF_TYPE_UNKNOWN rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_nsap() Converts an LDNS_RDF_TYPE_NSAP rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_wks() Converts an LDNS_RDF_TYPE_WKS rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_nsec() Converts an LDNS_RDF_TYPE_NSEC rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_period() Converts an LDNS_RDF_TYPE_PERIOD rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_tsigtime() Converts an LDNS_RDF_TYPE_TSIGTIME rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_apl() Converts an LDNS_RDF_TYPE_APL rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_int16_data() Converts an LDNS_RDF_TYPE_INT16_DATA rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_int16() Converts an LDNS_RDF_TYPE_INT16 rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_ipseckey() Converts an LDNS_RDF_TYPE_IPSECKEY rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)
All times are GMT -4. The time now is 11:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy