Given a bash command line of the form
commandA | commandB
I want to add a buffer of size ~1MB that sits between commandA and <
commandA
alternatively you could use a named pipe and run them in parallel:
mkfifo myfifo commandB < myfifo & commandA > myfifo rm myfifo