PartCp - copy part of file
You can copy portion of file using the GNU version of
dd if=SourceFile of=DestinationFile skip=SliceOffset count=SliceLength bs=1M iflag=skip_bytes,count_bytes,fullblock
The BSD version of
dd doesn't support
coreutils package to use the GNU version of
dd in BSD OS.
After installation GNU
dd will be available as
You can also employ easy to use
partcp. It performs faster than
dd on big and huge files.
Supported operating systems: GNU/Linux, Unix-like.
gcc -O2 -o partcp partcp.c
partcp source_file slice_offset slice_length destination_file