Here is my setup in basement for the last 2 decades. https://imgur.com/a/REOqZIK. I lean over an old newspaper to catch clippings.
12 karma · joined June 6, 2008
grep -i 'pattern' file | awk '{print $5}' | sed 's/^/cmd/g'
I end up sending to a file, chmod, then run it at the shell.