Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matteomanuelli opened this issue Sep 26, 2024 · 0 comments

Comments

@matteomanuelli
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant