I've got a process that I want to inspect with strace, but since it's printing out a lot of stuff, I would like to sample only a few lines every X seconds from it. Is there any way of doing that with bash or similar?
For example:
strace -p 123456 | "print out most recent 80 lines every 2 seconds"