4 ms·
Oof. Should have tried this one first before posting. The tricky part of this is that reading from standard input implies non-interactive mode. Not as succinct
by k3vinw 3y ago
Oof. Should have tried this one first before posting. The tricky part of this is that reading from standard input implies non-interactive mode.
Not as succinct but you can still pipe your output to vim, make your edits, run :w vimpipe to save your edits, and pipe the output of your vimpipe file to another command.
find . -type f -name \.txt | vim -; cat vimpipe | xargs rm
- k3vinw 3y agoThere’s also an existing command line utility for this called vipe which I’ve always wanted to try, but never got around too. It’s part of moreutils: https://joeyh.name/code/moreutils/ https://joeyh.name/code/moreutils/