Alright so i got this script genpipe:
echo "$*" |sh genscript file
vi file << 'HERE'
:%s/^/echo /g
:%s/ $//g
:%s/[0-9] /&\| xargs \.\/plus /g
:wq
HERE
cat file
Which generates output like echo 1 | xargs ./plus 2 | xargs ./plus 3 and so on
Now i got the next script multiplus, who should actually execute the output of genpipe. (the plus script just adds the input to output)
So in my exemple multiplus should generate 6 as output, but instead of that i got echo 1 | xargs ./plus 2 | xargs ./plus 3
So how do i actually make the output work as a command on the command line ?