I want to learn awk so I can do cool efficient text pipeliney things (like start printing on match, stop printing on another match, or run such and such command on a subset of the stream), but everytime I look at a tutorial for it, I think "these aren't practical" or "this makes no sense".
@zachdecook I have to look up how to use awk/sed pretty much every time I need them. I thought using a tee might work for you, so I searched using that as a key word as well. I probably don't understand your precise need, but this may be a starting point for you:
command | awk '{ if (/pattern/) { print > "match" } else { print > "nomatch" } }'
https://unix.stackexchange.com/questions/21212/how-can-i-redirect-matching-lines-to-a-file-and-non-matching-lines-to-a-differe
Didn't actually use tee and there is another version on that page.