I have a simple script that scrapes a webpage and puts the lines of content to the screen, then I simply pipe it to grep to output what I want then pipe that to less.
myscript.rb scrape-term | grep argument | less
I changed the script to use the following, instead of having the extra arguments on the command-line;
%x[ #{my-text-output} | grep argument | less ]
but now I get the error;
sh: 0: command not found
I've tried the other variants found here but nothing works!