I have a script outputting some value/numbers and I want to split those into two files.  I am looking at something like:./runme.sh | grep 'ook' >> ook.out | grep 'eek' >> eek.outWhere the second pipe should not, as is the case, take the output of the first grep but that of runme.sh.  Is that possible?
evaluate multiple patterns from program output and write into pattern specific files
bash;text processing;grep
That's perfect use case for the utility pee../runme.sh | pee grep ook >> ook.out grep eek >> eek.outIn Debian & derivatives, pee is found in moreutils package.