dd if=[filename] of=[filename] bs=512 cbs=512 conv=unblock conv=syncHowever, the output produces one extra record. The input file has 20 lines with 638 characters and the output file has 22 lines with 640 characters.
dd if=[filename] of=[filename] bs=512 conv=sync
Removing the cbs and conv settings shows that both the input and output files to have 20 lines each.
123456789012345678
The following command:
dd if=file cbs=6 conv=unblockproduces this output
123456\n789012\n345678\n
The dd command inserted a new line at byte intervals specified by cbs. In this case, the value is 6. If, for example, all of the 8 characters in the sample data are new lines, the output would be
23456\n7\n9012\n34567\n\n
With conv=unblock specified, new lines already in the data are treated like any other character.
[ Doc Ref: 95634928522000 Publish Date: Apr. 28, 2000 4FAX Ref: none ]