Hi,
This should be an absurdly easy task: I want to take each line of the stdout of any old command, and use each to execute another command with it as an argument.
For example:
ls | grep foo | applycommand 'mv %s bar/'
Where this would take everything matching "foo" and move it to the bar/ directory.
(I feel a bit embarrassed asking for what is probably a ridiculously obvious solution.)