Skip to content

can't substitute the matches with the output of a command that takes the match groups as input #305

@matteomanuelli

Description

@matteomanuelli

I'd like sth like

echo 'hello AworldA' | sd 'A(.*)A' './toupper.sh $1'
hello WORLD

where toupper.sh is any command/program like

#!/usr/bin/env bash
echo "$1" | tr a-z A-Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions