Sponsored Content
Top Forums Shell Programming and Scripting Moving bytes in file by offset and length Post 302464080 by jbt828 on Tuesday 19th of October 2010 08:20:42 AM
Old 10-19-2010
Thanks DG... it worked
 

10 More Discussions You Might Find Interesting

1. Programming

Accessing substrings by offset and length

Hi, I have a simple question... In C do we have a standard library function which will return the pointer to a substring at certain offset and having certain length... Ofcourse we should take care not to access beyond allocated length in the parent string and don't overwrite beyond allocated... (2 Replies)
Discussion started by: Vishnu
2 Replies

2. UNIX for Dummies Questions & Answers

Reading a file from a specified offset

Hi, I want to read a file from a specified offset from the start of file. With the read command, is it possible to do so. Please suggest. Is there any other alternative? Thanks, Saurabh (2 Replies)
Discussion started by: saurabhsinha23
2 Replies

3. Shell Programming and Scripting

Remove first N bytes and last N bytes from a binary file on AIX.

Hi all, Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this? Your help is greatly appreciated!! Best Regards, Naveen. (1 Reply)
Discussion started by: naveendronavall
1 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. Programming

Copying 1024 bytes data in 3-bytes chunk

Hi, If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script. dd bs=1024 count=3 if=/src of=/dest But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help. (3 Replies)
Discussion started by: royalibrahim
3 Replies

6. Shell Programming and Scripting

Flat file-make field length equal to header length

Hello Everyone, I am stuck with one issue while working on abstract flat file which i have to use as input and load data to table. Input Data- ------ ------------------------ ---- ----------------- WFI001 Xxxxxx Control Work Item A Number of Records ------ ------------------------... (5 Replies)
Discussion started by: sonali.s.more
5 Replies

7. UNIX for Dummies Questions & Answers

X bytes of 0, Y bytes of random data, Z bytes of 5, T bytes of 1. ??

Hello guys. I really hope someone will help me with this one.. So, I have to write this script who: - creates a file home/student/vmdisk of 10 mb - formats that file to ext3 - mounts that partition to /mnt/partition - creates a file /mnt/partition/data. In this file, there will... (1 Reply)
Discussion started by: razolo13
1 Replies

8. Shell Programming and Scripting

Shell script - entered input(1-40 bytes) needs to be converted exactly 40 bytes

hello, suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly. example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly. enter your name: donald duck (this is of 11 bytes) expected is as below - display 11... (3 Replies)
Discussion started by: shravan.300
3 Replies

9. UNIX for Advanced & Expert Users

Grep --byte-offset not returning the offset (Grep version 2.5.1)

Hi, I am trying to get the position of a repeated string in a line using grep -b -o "pattern" In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
Discussion started by: Subhamoy
3 Replies

10. UNIX for Dummies Questions & Answers

File name offset

Dear all, I want to offset the file numbers. can you please make some awk code or linux code for the same. Example: input file names ANI_WFMASS_PIST00001.gif ANI_WFMASS_PIST00002.gif . . . ANI_WFMASS_PIST0000n.gif offset --> 30 ANI_WFMASS_PIST00031.gif ANI_WFMASS_PIST00032.gif... (14 Replies)
Discussion started by: kri321shna
14 Replies
named-xfer(8)						      System Manager's Manual						     named-xfer(8)

Name
       named-xfer - pull BIND/Hesiod zones from another server

Syntax
       /usr/etc/named-xfer -z zone_to_transfer -f db_file -s serial_no [ -d debug_level ] [ -l debug_log_file ] [ -t trace_file ] [ -p port ] [ -n
       ] [ -a auth_type.auth_ver ] servers...

Description
       The transfer daemon, is a server that is usually run by the daemon, but it can also be run manually with the given arguments.  The transfer
       daemon  runs  on  a BIND/Hesiod secondary server and pulls BIND/Hesiod zones from a primary server.  This daemon is not run by default, nor
       can it be started up from

Options
       -z zone_to_transfer
			  This option is required to pull a zone.  The zone_to_transfer argument specifies the name of the BIND/Hesiod	zone  that
			  the daemon will transfer, for example, dec.com.

       -f db_file	  This option is  required to pull a zone.  The db_file argument specifies the name of the file into which the pulled zone
			  information is placed.

       -s serial_no	  This option is required to pull a zone.  The serial_no argument should be set to the current serial number  of  the  SOA
			  record for the zone zone_to_transfer.  If serial_no is set to 0, the zone is always pulled.

       -d debug_level	  The debug_level argument sets the debug level and determines the amount of debug information to be displayed.

       -l debug_log_file  The debug_log_file argument specifies the file that will contain any debug messages from the zone pull.

       -t trace_file	  The trace_file argument specifies the file that will contain a trace from the zone pull.

       -p port		  The port argument specifies the port that will be used instead of the default nameserver port listed in

       -n		  This	option	must be used when the daemon is running in the network safe mode.  It indicates that the zone pull must be
			  authenticated.

       -a  auth_type.auth_ver
			  This option must be used if the daemon is running in the network safe mode.  The auth_type argument indicates what  type
			  of authentication to use and the auth_ver argument indicates what version of the authentication type to use.	Currently,
			  the auth_type must be "kerberos" and the auth_ver must be "one".

       servers...	  The servers argument is a list of Internet addresses from which to pull a zone.  If the first host cannot be	ddreached,
			  the transfer daemon will try to pull the zone from the next host listed.

See Also
       services(5), named(8), kerberos(8krb)
       Guide to the BIND/Hesiod Service
       Guide to Kerberos

																     named-xfer(8)
All times are GMT -4. The time now is 09:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy