This should be an absurdly simple task: I want to take every stdout line of any old command and use it to execute another command with it as an argument.
For instance:
ls | grep foo | applycommand 'mv% s bar /'
If it takes everything that matches "foo", and move it to the bar / directory.
(I feel a little confused, asking what is probably an absurdly obvious solution.)
source
share