Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Creating data delimited by ASCII code 1 Post 303036286 by jim mcnamara on Friday 21st of June 2019 12:10:30 PM
Old 06-21-2019
What happens in the above nice example when there is a 00 character? I do not think it will work as required. I do not have your system, but on mine (opensuse 13, bash, and dash) I get short fields (fewer bytes).
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Convert Binary data to ascii data

Friends, I've tried on solaris, but I could n't get ascii data dd if=binaryinputfile bs=1 skip=3800 count=4 | od -t u4 output : INDBU3:/usr/users/FTAMUSER/kk $ dd if=SMP20041006173649188151 bs=1 skip=3800 count=4 | od -t u4 4+0 records in 4+0 records out 0000000 0000000000 0000004... (4 Replies)
Discussion started by: krishna
4 Replies

2. UNIX for Dummies Questions & Answers

Creating flat text file (ASCII)

Hi everybody. I need help and I hope someone is willing to help me out here. My wholesale company is currently moving to new software. The old software is running on a UNIX platform. We need to migrate data from the UNIX system, but our former software provider refuses to assist the data... (5 Replies)
Discussion started by: Wdonero
5 Replies

3. Shell Programming and Scripting

Check whether a given file is in ASCII format and data is tab-delimited

Hi All, Please help me out with a script which checks whether a given file say abc.txt is in ASCII format and data is tab-delimited. If the condition doesn't satisfy then it should generate error code "100" for file not in ASCII format and "105" if it is not in tab-delimited format. If the... (9 Replies)
Discussion started by: Mandab
9 Replies

4. Shell Programming and Scripting

how to check the file data type(ascii or binary)

hi i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format, please help thanks in advance satya (1 Reply)
Discussion started by: Satyak
1 Replies

5. UNIX for Dummies Questions & Answers

Sorting data in an ASCII file

Hi,,, is there anyway to sort the data that I have on an ASCII file, using unix? :confused::confused::confused: Thanks (2 Replies)
Discussion started by: cosmologist
2 Replies

6. Shell Programming and Scripting

how to convert data from ASCII to Packed Decimal

Hi All, Please let me know if it is possible to convert data from ASCII to Packed Decimal through Unix? Basically we have ASCII file with numeric data we want to convert that files data to Packed decimal format to send it to main frame. Please let me know if we can do it through unix script.... (1 Reply)
Discussion started by: aloktiwary
1 Replies

7. Shell Programming and Scripting

Import ASCII 28 delimited text file

I have an ASCII 28 delimited text file(non-printable delimiter) with 4 columns along with the header.I need to open this text file in Excel or any other tool to view each column content. Please help.. Thanks (6 Replies)
Discussion started by: aneeta13
6 Replies

8. UNIX for Advanced & Expert Users

Conversion of data - ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (0 Replies)
Discussion started by: tostay2003
0 Replies

9. Shell Programming and Scripting

Bash - binary data to ascii code

Hello, With bash-script (ubunto server) I'm trying to read a binary file and, for each character, give back its ascii code (including extended ascii). For example: HEX => ASCII => PRINT f5 => 245 => õ 50 => 80 => P To load the binary file into a variable I tried in this way: ... (2 Replies)
Discussion started by: math4
2 Replies

10. Homework & Coursework Questions

ASCII comma-delimited

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi Guys, I am new on the scripting world and would like ask for help if you can. Here are my questions... (1 Reply)
Discussion started by: mahiwaga
1 Replies
Net::DNS::Domain(3)					User Contributed Perl Documentation				       Net::DNS::Domain(3)

NAME
Net::DNS::Domain - Domain Name System domains SYNOPSIS
use Net::DNS::Domain DESCRIPTION
The "Net::DNS::Domain" module implements a class of abstract DNS domain objects with associated class and instance methods. Each domain object instance represents a single DNS domain which has a fixed identity throughout its lifetime. Internally, the primary representation is a (possibly empty) list of ASCII domain labels, and optional link to an ancestor domain object topologically closer to the root of the DNS namespace. The presentation form of the domain name is generated on demand and the result cached within the object. METHODS
new $domain = new Net::DNS::Domain('example.com'); Creates a domain object which represents the DNS domain identified by the character string argument. The identifier consists of a sequence of labels delimited by dots. The argument string consists of printable characters from the 7-bit ASCII repertoire. A character preceded by represents itself, without any special interpretation. Any 8-bit code point can be represented by followed by exactly three decimal digits. Character code points are ASCII, irrespective of the encoding employed by the underlying platform. No characters are associated with code points beyond 127. Argument strings should be delimited by single quotes to avoid escape sequences being misinterpreted by the compiler. The character string presentation format follows the conventions for zone files described in RFC1035. decode $domain = decode Net::DNS::Domain( $buffer, $offset, $hash ); ( $domain, $next ) = decode Net::DNS::Domain( $buffer, $offset, $hash ); Creates a domain object which represents the DNS domain identified by the compressed name at the indicated offset within the data buffer. The argument list consists of a reference to a scalar containing the wire-format data, specified offset and reference to a hash used to represent compressed names. The returned offset value indicates the start of the next item in the data buffer. encode $data = $domain->encode( $offset, $hash ); Returns the wire-format representation of the domain object suitable for inclusion in a DNS packet buffer. The optional arguments are the offset within the packet data where the domain name is to be stored and a reference to a hash table used to index compressed names within the packet. name $name = $domain->name; Returns a character string corresponding to the "typical" form of domain name to which section 11 of RFC2181 alludes. The string consists of printable characters from the 7-bit ASCII repertoire. Code points outside this set are represented by the appropriate numerical escape sequence. mailbox $mail = $domain->mailbox; Returns a character string containing the mailbox interpretation of the domain name as described in RFC1035 section 8. string $fqdn = $domain->string; Returns a character string containing the absolute name of the domain as described in RFC1035 section 5.1. The string consists of printable characters from the 7-bit ASCII repertoire. Code points outside this set are represented by the appropriate numerical escape sequence. Characters which have special meaning in a zone file, dots which are part of a domain label, and the escape character itself are represented by escape sequences which remove any such meaning. BUGS
Platform-specific parts of the code are designed to be optimised away by the compiler for reasons of efficiency. This is achieved at considerable expense in terms of readability. COPYRIGHT
Copyright (c)2009 Dick Franks. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
perl(1), Net::DNS, RFC1035, RFC2181. perl v5.12.1 2009-12-30 Net::DNS::Domain(3)
All times are GMT -4. The time now is 03:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy