Add copyfilerange

Open
#533 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start by inspecting the repository's existing command implementations and the copyfilerange(1) documentation referenced by the issue. Implement the command interface shown in the help text, including range arguments, --ranges, --verbose, --help, and --version. It is done when the command copies the requested byte ranges between files and its help output matches the specified usage.

Written by the indexing model from the issue text.

Description

> copyfilerange --help

Usage:
 copyfilerange [options] <source> <destination> <range>...

Copy the specified range(s) from source to destination file.

Options:
 -r, --ranges <file>     read ranges separated by newlines from this file
 -v, --verbose           verbose mode

 -h, --help              display this help
 -V, --version           display version

Arguments:
 <range> is of the form <source_offset>:<destination_offset>:<length>,
 with all values in bytes. If <length> is 0, as much data as available
 is copied. When an offset is omitted, the last file position is used.

For more details see copyfilerange(1).
Dominant language
Rust
Stars
219
Forks
59
Avg merge
4h 8m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uutils/util-linux

All issues in uutils/util-linux

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.