[SunHELP] problem with dd command - extra blank chars added
Eddie Watkins
eddie.watkins at mail.moray.gov.uk
Thu Jul 18 05:31:19 CDT 2002
Hi
We have a file that can have a random number of variable length records. We
need to dump the file to tape with a fixed length of 512 bytes per record,
so use the following command dd if=file1 of=dev/rmt/1 cbs=512
conv=sync,block.
When this is done it adds an extra 512 blank spaces to the end of the file.
I have checked using more, vi etc that there is not a blank line at the end
of the file, but doing an octal dump shows that the final record ends with a
newline sequence '\n'. Is there any way to remove this final newline before
the dd command is processed or any other way that the 512 blank chars can be
removed ?
Thanks
Eddie Watkins
The Moray Council
email: eddie.watkins at moray.gov.uk
tel: 01343 563247
******** The Moray Council: Internet E-mail Notice ********
The contents of this e-mail and any attachments ('this e-mail')
are confidential and intended solely for the addressee.
If this e-mail has been sent to you by mistake, please notify
postmaster at moray.gov.uk as soon as possible; you should then
delete this e-mail from your computer.
More information about the SunHELP
mailing list