Skip to content

Reference capture groups inside exec #1154

Open
@BasixKOR

Description

@BasixKOR

I'd like to rename a bulk of files using fd but I'd like to use some parts of the original filename in the renamed filenames.

Could we add something like:

fd '(\d+)' -X mv {} something-{1}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions