What other tools should I use to read and write files with truncation, seeking and skipping. dd's command line options seem inconvenient and foreign and I don't like choosing between slow, but precise seeking mode (bs=1) and fast, but inflexible mode (bs=4k or whatever).
Are there more modern tools to read 555 bytes from one file (or pipe or socket or dev) from position 31337 and write them to the other file at position 128205 (using blocks 512+43), with or without truncation?
dd. You could always put a shell script wrapper around it if you don't like the interface.ddis in the POSIX standard, which is a huge plus. – jw013 Jul 31 '12 at 18:55status=noxferis not default and is broken and that I neediflag=fullblock(omit in some script => broken data). – Vi. Jul 31 '12 at 20:25dd bs=1M skip=TO_CHUNK count=1 | dd bs=1 skip=OFFSET. It takes some arithmetic but a wrapper script can deal with that. – Thor Jul 31 '12 at 20:42bs=1=> the whole pipeline is slow. For example I may want to dump video file starting from some exact frame. 2. "It takes some arithmetic" => not very suitable for oneliners and routine shell commands. – Vi. Jul 31 '12 at 20:58