I need to analyze the output of some scriptSo, I know their header and their tail of some part of the output script, but not the content.I found an approach [1] But I need something like:$ myscriptLine ALine BLine CLine DLine ELine F$ myscript | tee /dev/stderr | <some option from C to E> > out.file$ cat out.fileLine CLine DLine E[1] - Output to stdout and at the same time grep into a file
Filter partial output of some script
bash;grep;tee