Sponsored Content
Full Discussion: Fixed length (Fill out)
Top Forums Shell Programming and Scripting Fixed length (Fill out) Post 302138055 by sandyg on Friday 28th of September 2007 11:04:51 AM
Old 09-28-2007
what if I have to append it to the right side of each record
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating a fixed length output from a variable length input

Is there a command that sets a variable length? I have a input of a variable length field but my output for that field needs to be set to 32 char. Is there such a command? I am on a sun box running ksh Thanks (2 Replies)
Discussion started by: r1500
2 Replies

2. Shell Programming and Scripting

fixed record length

hello! I have a file with fixed record length... format: 123445asdfg 4343777 sfgg I wanna convert it to 123445,asdfg ,4343,777 ,sfgg is there any way to do it? sed/grep/awk?? at the moment I use sed -e 's_ \(\)_,\1_g' but it works only if there are spaces between... (16 Replies)
Discussion started by: george_
16 Replies

3. UNIX for Dummies Questions & Answers

What the command to find out the record length of a fixed length file?

I want to find out the record length of a fixed length file? I forgot the command. Any body know? (9 Replies)
Discussion started by: tranq01
9 Replies

4. UNIX for Dummies Questions & Answers

Convert a tab delimited/variable length file to fixed length file

Hi, all. I need to convert a file tab delimited/variable length file in AIX to a fixed lenght file delimited by spaces. This is the input file: 10200002<tab>US$ COM<tab>16/12/2008<tab>2,3775<tab>2,3783 19300978<tab>EURO<tab>16/12/2008<tab>3,28523<tab>3,28657 And this is the expected... (2 Replies)
Discussion started by: Everton_Silveir
2 Replies

5. Shell Programming and Scripting

Make variable length record a fixed length

Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types: (H)eader Records (D)etail Records (T)railer Records The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies

6. Shell Programming and Scripting

changing a variable length text to a fixed length

Hi, Can anyone help with a effective solution ? I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces. The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies

7. Shell Programming and Scripting

Fixed length fields

HPUX and posix shell Hi all. I have a record with fixed length fields....I would like to reorder the fields and preserver the fixed lengths.... cat test 4 960025460 Dept of Music 8 960025248 Dept of Music 12-08 cat... (3 Replies)
Discussion started by: lyoncc
3 Replies

8. UNIX for Dummies Questions & Answers

Length of a fixed width file

I have a fixed width file of length 53. when is try to get the lengh of the record of that file i get 2 different answers. awk '{print length;exit}' <File_name> The above code gives me length 50. wc -L <File_name> The above code gives me length 53. Please clarify on... (2 Replies)
Discussion started by: Amrutha24
2 Replies

9. Shell Programming and Scripting

Make it to fixed length

Hi Team, I have a different length records in my text file.I would like to make all the records with same length. I want to check the maximum lenth and all other records make the same length It's urgent request. Thanks in Advance (2 Replies)
Discussion started by: Anthuvan
2 Replies

10. Shell Programming and Scripting

Convert variable length record to fixed length

Hi Team, I have an issue to split the file which is having special chracter(German Char) using awk command. I have a different length records in a file. I am separating the files based on the length using awk command. The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_pkt2buffer_str, ldns_pktheader2buffer_str, ldns_rr2buffer_str, ldns_rr_list2buffer_str, ldns_rdf2buffer_str, ldns_key2buffer_str, ldns_pkt2buffer_wire, ldns_rr2buffer_wire, ldns_rdf2buffer_wire, ldns_rrsig2buffer_wire, ldns_rr_rdata2buffer_wire- SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_status ldns_pkt2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_pktheader2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_rr2buffer_str(ldns_buffer *output, const ldns_rr *rr); ldns_status ldns_rr_list2buffer_str(ldns_buffer *output, const ldns_rr_list *list); ldns_status ldns_rdf2buffer_str(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_key2buffer_str(ldns_buffer *output, const ldns_key *k); ldns_status ldns_pkt2buffer_wire(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_rr2buffer_wire(ldns_buffer *output, const ldns_rr *rr, int section); ldns_status ldns_rdf2buffer_wire(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rrsig2buffer_wire(ldns_buffer *output, const ldns_rr *sigrr); ldns_status ldns_rr_rdata2buffer_wire(ldns_buffer *output, const ldns_rr *rr); DESCRIPTION
ldns_pkt2buffer_str() Converts the data in the DNS packet to presentation format (as char *) and appends it to the given buffer output: pointer to the buffer to append the data to pkt: the pointer to the packet to convert Returns status ldns_pktheader2buffer_str() Converts the header of a packet to presentation format and appends it to the output buffer output: the buffer to append output to pkt: the packet to convert the header of Returns ldns_status ldns_rr2buffer_str() Converts the data in the resource record to presentation format (as char *) and appends it to the given buffer. The presentation format of DNSKEY record is annotated with comments giving the id, type and size of the key. output: pointer to the buffer to append the data to rr: the pointer to the rr field to convert Returns status ldns_rr_list2buffer_str() Converts a rr_list to presentation format and appends it to the output buffer output: the buffer to append output to list: the ldns_rr_list to print Returns ldns_status ldns_rdf2buffer_str() Converts the data in the rdata field to presentation format (as char *) and appends it to the given buffer output: pointer to the buffer to append the data to rdf: the pointer to the rdafa field containing the data Returns status ldns_key2buffer_str() Converts the data in the DNS packet to presentation format (as char *) and appends it to the given buffer output: pointer to the buffer to append the data to k: the pointer to the private key to convert Returns status ldns_pkt2buffer_wire() Copies the packet data to the buffer in wire format *output: buffer to append the result to *pkt: packet to convert Returns ldns_status ldns_rr2buffer_wire() Copies the rr data to the buffer in wire format *output: buffer to append the result to *rr: resource record to convert section: the section in the packet this rr is supposed to be in (to determine whether to add rdata or not) Returns ldns_status ldns_rdf2buffer_wire() Copies the rdata data to the buffer in wire format *output: buffer to append the result to *rdf: rdata to convert Returns ldns_status ldns_rrsig2buffer_wire() Converts a rrsig to wireformat BUT EXCLUDE the rrsig rdata This is needed in DNSSEC verification output: buffer to append the result to sigrr: signature rr to operate on Returns ldns_status ldns_rr_rdata2buffer_wire() Converts an rr's rdata to wireformat, while excluding the ownername and all the stuff before the rdata. This is needed in DNSSEC keytag calculation, the ds calcalution from the key and maybe elsewhere. *output: buffer where to put the result *rr: rr to operate on Returns ldns_status 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
ldns_pkt2str, ldns_rr2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str. And 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 06:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy