I would like to take the output from a program and interactively filter which lines to pipe to the next command.
ls | interactive-filter | xargs rm
For example, I have a list of files that a pattern cannot match against to reduce. I would like a command interactive-filter
that will page the output of the file list and I could interactively indicate which lines to forward to the next command. In this case each line would then be removed.